On 02/28/2003 11:10 AM, Mathieu Dumoulin wrote:
Allright, we managed to get to send emails thru an SMTP, but now we need to know which email DID get to the recipient and which didn't. Our smtp class supports basic error message but as soon as the message is outbound from this server, which is most oftenly the case, the class always returns success. Allright we can live with that. But our mass mailing software using this class needs to keep track of which client of our numerous members gets the email.
The only solution we though of which is very risky, is to:
Setup a mass mailing account for each client and send emails as if they where the mass mailer Then a robot is in charge of scanning the inbox for returned postmaster messages and parse it to find the error such as "unknown user".
I do that, except that I make the message return path be in some domain handled by a catch-all POP mailbox. The return path is also set in such way that it identifies the exact address of the subscriber that is bouncing.
I don't advise sending via SMTP unless you do not have an alternative (when you are using Windows) because it is very slow to queue messages. Sending to your local mailer queue (sendmail, qmail, postfix, etc..) can be much faster.
Anyway, regardless of the way you send your messages, you may want to try this class that knows how to set the return-path address depending of the sending methods that you use (mail(), sendmail, SMTP, qmail, etc...).
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php