Sanganabasu
Sanganabasu

Reputation: 927

How can I send email Headers using Amazon SES?

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 protected]>

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

Upvotes: 9

Views: 5113

Answers (2)

Rohan
Rohan

Reputation: 139

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

$client->sendMail( array(
                   'source' => 'Name <[email protected]>', 
                    ....
                     )
         );

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 >

Upvotes: 7

Harsha M V
Harsha M V

Reputation: 54979

Change the FROM Variable to something like this

$m->setFrom(" Name <[email protected]>");

Upvotes: 15

Related Questions