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

Handle multiple recipients from headers #24

Open
elieux opened this issue Nov 13, 2018 · 0 comments
Open

Handle multiple recipients from headers #24

elieux opened this issue Nov 13, 2018 · 0 comments

Comments

@elieux
Copy link

elieux commented Nov 13, 2018

I'm trying out this sendmail for development and found a problem with using it through PHP's mail() function. The standard way to specify recipients seems to be to put them in the message headers and if there are more than one, separate them by commas. Unfortunate thing is that the format is not as simple as #21 proposes, specified in RFC 822 and RFC 1123 and witnessed for instance by this Go EML parser unit tests (but it doesn't cover many problematic cases either).

I don't mean to add complexity to mhsendmail, but without additional parsing net/smtp.SendMail() just fails with 501 Error: Bad recipient address syntax in this case.

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

No branches or pull requests

1 participant