"To" names with commas cause mail delivery to fail #352
Labels
difficulty: medium
fix is medium in difficulty
status: work in progress
Twilio or the community is in the process of implementing
type: bug
bug in the library
Issue Summary
Providing a
name
tomail.NewMail
with a comma causes the email to be sent erroneously as the first "word" will be used as the email address.Steps to Reproduce
mail.NewMail("My Company, LLC", "mycompany@example.com")
.my
.If
NewMail
automatically double-quoted names that are not already double-quoted, it would solve the issue for commas as well as any other characters outside of the normal range.Technical details:
The text was updated successfully, but these errors were encountered: