I've a hosting account with bluehost.com. They are sending out my emails but the From field isn't what I expected.
It's something like this.
When I tested it on my localhost home server, it was like this, which is what I need.from example1@example.bluehost.com
reply-to Name of Sender <admin@example.com>
to recipient@gmail.com
date Sun, Oct 19, 2008 at 12:45 AM
subject Subject title for email (testing)
mailed-by example.bluehost.com
I'm using the following code.from Name of Sender <admin@example.com>
reply-to Name of Sender <admin@example.com>
to recipient@gmail.com
date Sun, Oct 19, 2008 at 12:45 AM
subject Subject title for email (testing)
Code: Select all
$sSwiftSender = new Swift_Address('admin@example.com', 'Name of Sender');
$swift->send($message, 'recipient@gmail.com', $sSwiftSender)