9

I am using a Wrapper from http://sourceforge.net/projects/php-aws-ses/

I am not able to send Email Headers with

From: Name <email@example.com>

Is there any way we can send headers using amazon ses. Any other PHP Wrapper you recommend which allows us to do that?

starball
  • 20,030
  • 7
  • 43
  • 238
Sanganabasu
  • 943
  • 7
  • 21
  • 39

2 Answers2

15

Change the FROM Variable to something like this

$m->setFrom(" Name <info@gitgrow.com>");
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
7

For the new API SDK (v2) you can use:

$client->sendMail( array(
                   'source' => 'Name <a@b.c>', 
                    ....
                     )
         );

Basically if you want to include the name, the source must have the name followed by the email id and importantly, the email id must be enclosed in < and >

TLama
  • 75,147
  • 17
  • 214
  • 392
Rohan
  • 139
  • 1
  • 5