Howto disable the return path address?

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
davide
Forum Newbie
Posts: 1
Joined: Sat Oct 04, 2008 4:59 am

Howto disable the return path address?

Post by davide »

Hi,

i wonder howto send a mail with swiftmailer with an empty return path?
I just want to have a from address, but no return address.

Tried:

Code: Select all

$message->setReturnPath("");
but i guess if return path is empty its automatically created from the "from address".

Any hints?

thanks in advance!

davide
Isoik
Forum Newbie
Posts: 5
Joined: Tue Oct 28, 2008 1:07 pm

Re: Howto disable the return path address?

Post by Isoik »

I'm using:

Code: Select all

 
// Catch-all address
if ( !empty($mailTemplate['returnpath']) )
   $message->setReturnPath($mailTemplate['returnpath']);
To set the catch-all address. If you don't want to specify a return path address why not provide a fake one?
Post Reply