Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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']); 
like image 890
Mr.Coi Avatar asked Mar 03 '14 07:03

Mr.Coi


People also ask

Where can I find the attribute attributes in emails sent from accredible?

Attributes in emails sent from Accredible can be found in email templates: Click on 'Emails' at the top of the Accredible Dashboard. Click on 'Email Templates' in the lefthand sidebar menu.

What is the difference between from name and subject in email?

If the email is sent to the contact [email protected], whose contact attribute for FIRSTNAME is Paul, the email subject will appear as follow in his inbox: Your From name is the name that appears in your recipients' inbox to identify the sender. Its purpose is to build trust with recipients and generate more openings.

How to add custom attributes to Exchange mailboxes?

Compare the two approaches below and decide for yourself. Next, go to Users > Active users. Select a user with an active mailbox to access their properties. Then, go to Mail > Edit Exchange properties. Click More options to expand the window to show custom attributes.

What are email attributes and how do they work?

Not only do attributes personalize the email to the specific recipient, but they also provide that recipient with access to their new credential Important Note: If you are not already familiar with what attributes are and how they are used in Accredible, we strongly suggest you read our article here before proceeding: A Guide to Attributes


2 Answers

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

like image 182
dezinezync Avatar answered Sep 21 '22 14:09

dezinezync


I have resolved the same issue after checking this aws forum link . I was using aws SES for sending mails using java sdk , so I have added the from email id in the application.yml file like below.

from: John Doe <[email protected]> 
like image 45
Vignesh_A Avatar answered Sep 23 '22 14:09

Vignesh_A