1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 2 mois
- Réponse acceptéedemandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
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.