How can set name for source/from attribute on sent emails?

Mr.Coi picture Mr.Coi · Mar 3, 2014 · Viewed 15.5k times · Source

I'm using aws-sdk-for-php and using AmazonSES for sending email. The problem is I want to set the name for the email. Example:

指定 < email_address >

Here my source code:

$mailer = new \AmazonSES( $aws_config ); $response = $mailer->send_email($mail_data['from'],$mail_data['to']);

Answer

dezinezync picture dezinezync · Mar 3, 2014

I believe the format you're looking for is as follows:

"John Doe" <[email protected]>

Reference: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/email-format.html