Hi,
We are using the Swift mailer API version 3.3.2, and we are having problems in sending mails. Mails sent from our site at times fail on certain domains like aol.in, we have contacted our Hosting provider and they have told us to set the envelope sender while sending the mail.
How do i set the envelope sender in swift mailer, before sending the mail.
Regards,
Sheldon
Setting the envelope sender
Moderators: Chris Corbyn, General Moderators
I believe the "envelope sender" this is also known as the "Return Path" address. The code for this is
See http://www.swiftmailer.org/wikidocs/v3/ ... ce_address for more info
I also found this page really useful for ensuring that my mails get delivered: http://www.swiftmailer.org/wikidocs/v3/tips/spam
Code: Select all
$message->setReturnPath("bounces@company.tld");I also found this page really useful for ensuring that my mails get delivered: http://www.swiftmailer.org/wikidocs/v3/tips/spam
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia