How to set a name for the source / from attribute in sent emails?

I use aws-sdk-for-php and use AmazonSES to send email. The problem is that I want to set a name for the email. Example:

指定 < email_address >

Here is my source code:

 $mailer = new \AmazonSES( $aws_config ); $response = $mailer->send_email($mail_data['from'],$mail_data['to']); 
+15
source share
1 answer

I believe the format you are looking for is as follows:

"John Doe" < johndoe@example.com >

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

+34
source

All Articles