Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoting recipient names with punctuation #32

Open
ukutaht opened this issue Jun 25, 2020 · 1 comment
Open

Quoting recipient names with punctuation #32

ukutaht opened this issue Jun 25, 2020 · 1 comment

Comments

@ukutaht
Copy link

ukutaht commented Jun 25, 2020

First of all, thanks for the library.

I have a problem sending email to one of my customers who has included punctuation in their username. I use the to: [{user_name, user_email}] format to configure the recipient.

When the first field includes a comma e.g. acme, Inc, the postmark API returns the following error:

Here is the response:
"{\"ErrorCode\":300,\"Message\":\"Error parsing 'To': Illegal email address 'acme'. It must contain the '@' symbol.\"}"

Postmark's documentation states that

For email addresses that have names or titles with punctuation, you should quote them as such: "To" : ""Joe Receiver, jr" receiver@example.com"

ref

Do you think adding quote marks around the name of the recipient is within scope of this library?

Cheers

@vinibrsl
Copy link

vinibrsl commented Nov 15, 2022

I have a pull request that might solve this issue: #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants