Sending Mail on behalf of another user

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
billgoodyear
Forum Newbie
Posts: 16
Joined: Fri Apr 20, 2007 11:00 am

Sending Mail on behalf of another user

Post by billgoodyear »

It is supported to have a From and a Sender.

We delivery a lot of batch mails on behalf of our store owners, and so while the Sender is us, the From is actually the store operator. I'd love to be able to comply with the RFC that would allow us to have both in our messages.

At the moment we are having to fake it by using our email address and setting the name to be the name of the store operator. This is ok, but not as good as using From and Senders.

Thanks,

Bill.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Sending Mail on behalf of another user

Post by Chris Corbyn »

billgoodyear wrote:It is supported to have a From and a Sender.

We delivery a lot of batch mails on behalf of our store owners, and so while the Sender is us, the From is actually the store operator. I'd love to be able to comply with the RFC that would allow us to have both in our messages.

At the moment we are having to fake it by using our email address and setting the name to be the name of the store operator. This is ok, but not as good as using From and Senders.

Thanks,

Bill.
Swift gives you complete header control. You can even remove what's already there if you need to.

Code: Select all

$message->headers->set("Sender", "whatever@wherever");
?
Post Reply