Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set reply-to when using Swiftmailer

How can reply-to be set when using Swiftmailer. The docs mentioned the function setReplyTo() but without specific instructions on how to use it.

Any help will be appreciated.

like image 866
Dave Avatar asked Aug 03 '11 23:08

Dave


1 Answers

I can confirm that the setReplyTo method works the same way as (for example) the setCC method.

$message->setReplyTo(array(   '[email protected]',   '[email protected]' => 'Person 2 Name',   '[email protected]',   '[email protected]',   '[email protected]' => 'Person 5 Name' )); 
like image 103
Lode Avatar answered Sep 21 '22 13:09

Lode