Page 1 of 1

Changing the FROM name

Posted: Thu Apr 24, 2008 11:34 pm
by goldfiles
How can I set the FROM Name value? Such as this line in the basic php mail() function:

Code: Select all

$headers .= "From: Franklin Worthingstonfordshire <FrankW@mysite.com>\r\n";
How can I set the name in Swift Mailer?

Re: Changing the FROM name

Posted: Fri Apr 25, 2008 2:54 am
by Chris Corbyn

Code: Select all

$swift->send($message, $recipients, new Swift_Address('your@address', 'Your name'));