Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/56865-does-anyone-know-php-mailer/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.