Setting the envelope sender

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
shachinb
Forum Newbie
Posts: 4
Joined: Sun Nov 11, 2007 4:13 am

Setting the envelope sender

Post 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
apexa
Forum Newbie
Posts: 8
Joined: Tue Dec 04, 2007 8:50 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

+1 with above post ;)
Post Reply