c_shelswell Posted June 23, 2007 Share Posted June 23, 2007 Hi i'm getting a bit stuck trying to send out a subscribed mailing list. I did a test run the other day with 3000 mails to genuine emails but from an older database so some of them failed. The program i've made is meant to receive those failed mails and mark them as such in the database. Now the problem, the mails that came back to the address that sent them worked great however some of the mails returned to our servers default address NOT the address i'd sent them out with. i.e. the return-path on 200 of the mails was correct but 900 set the return path as the server default. The email addresses that did this were bad addresses but surely there must be a way in phpmailer to send mail and force the return path to what i set it?? the code i'm using (shortened) is: $mailer = new FreakMailer(); $mailer->AddAddress($emailAddress, $fullname); $mailer->FromName = $fromName; $mailer->From = $fromAddress; $mailer->Sender = $fromAddress; //<<< This the bit that should set the return-path $mailer->Send(); would it make any difference if i sent via SMTP? I can only imagine even though i'm setting the from addresses here it's still sending via the servers default account? Any ideas on this would be very happily received. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/56865-does-anyone-know-php-mailer/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.