Page 1 of 1

Setting the envelope sender

Posted: Sun Dec 16, 2007 3:36 am
by shachinb
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

Posted: Sun Dec 16, 2007 8:56 pm
by apexa
I believe the "envelope sender" this is also known as the "Return Path" address. The code for this is

Code: Select all

$message->setReturnPath("bounces@company.tld");
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

Posted: Mon Dec 17, 2007 4:46 pm
by Chris Corbyn
+1 with above post ;)