Changing the FROM name

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
User avatar
goldfiles
Forum Commoner
Posts: 27
Joined: Sun Nov 12, 2006 5:50 pm

Changing the FROM name

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

Re: Changing the FROM name

Post by Chris Corbyn »

Code: Select all

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