1 Answer
- Newest
- Most votes
- Most comments
1
If you want to specify the display name ('friendly name') that contains spaces, you should put that sender name in double quotes. Do not forget to escape them:
Source = "\"My Website\" <noreply@mywebsite.com>"
In general, always prefer that format.
Please refer to the Amazon SES Developer Guide. Please also refer to the RFC5322 standard.
answered 2 years ago
Relevant content
- asked 4 months ago
- asked 5 years ago
- asked 3 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
This worked for me, though since it worked intermittently in the past, I can't fully test it. I didn't find anything in the documentation about surrounding the friendly name in quotes in case of whitespace, but since the quote marks don't show up literally in the email header when delivered, it makes sense that they would be acting to delimit the contents as a single string. We'll go with it. Thanks.