Re: No takers?
| From: | Manuel Lemos | Date: | Mon, 06 May 2002 11:45:21 +0000 |
| Subject: | Re: No takers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96246@lists.php.net to get a copy of this message | ||
Hello,
Anthony Rodriguez wrote:
Please HELP! PROBLEM When a php script uses mail() and sendmail, if the e-mail address is not right, the e-mail is returned to the envelope sender (the hosting provider), NOT to the "From", "Reply-To", "Return-Path", or any other additional headers included in mail(). Apparently, this problem is faced by any user who utilizes a hosting provider. SOLUTION I've found 2 php classes (developed by Manuel Lemo) that address this problem. The first, email_message.php was built to send MIME-encoded messages. The second, sendmail_message.php extends the first by addressing the return-path problem. Unfortunately, the first parses the message to allow sending MIME-encoded messages. For many who are only sending plain text messages, this is unnecessary processing.I am not sure what you mean, but the class does not parse the message, but rather encodes it in a way that it will not be refused by some mail servers.
HELP NEEDED I would like to consolidate these 2 classes and eliminate the parsing. Unfortunately, I'm a newbie and need help from the pros. If anyone is interested in participating in this project, please e-mail me directly at afrodriguez@att.net. After completion this "new" class would be submitted to www.phpclasses.org for everyone to use.Encoding in MIME is generally a requirement for sending messages, but even if it were not usually required, what would be the importance of not doing it? You can always send your messages directly to the recipients SMTP server with this class: http://www.phpclasses.org/browse.html/package/14.html But if you do not format the message according to the MIME standards, chances are that your message is refused, bounced or even discarded by some SPAM filter. Regards, Manuel Lemos