Ok it may sound a newbie question, but i can't figure it out...
I'm trying to show the "name" of the user sending the email in the from: field.
I've been using a variable $from with a content like
$from = "Username <postmaster@mydomain.com>"; //sender
But it seems that Swiftmailer ignore the part outside the <email> part.
Name in the "from:" field ?
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
$from = new Swift_Address("postmaster@mydomain.com", "Username");