I've got some .Net code I'm switching from the System.Net.MailMessage to Amazon SES and their .Net SDK v2. Is it possible to include a display name with SES using the SDK similar to the MailMessage object?
The relevant part of the old code looks something like this:
MailMessage message = new MailMessage();
MailAddress toAddress = new MailAddress(_user.Email, _user.DisplayName);
message.To.Add(toAddress);
The relevant part of the new code (so far):
SendEmailRequest request = new SendEmailRequest()
{
Source = _user.Email
};
With the Java SDK you can include the display name in the sender
field using the format:
John Doe <john.doe@example.com>
I assume it is the same with the .NET SDK.