xhit / go-simple-mail

Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
MIT License
650 stars 102 forks source link

[Feature Req] Interface that accept To/CC with a single string #93

Closed suntong closed 11 months ago

suntong commented 11 months ago

Please consider adding/allowing passing a single string to To/CC. Currently there is an extra check preventing it:

Mail Error: mail: expected single address, got ",a2@gmail.com"; Header: [To] Address: [a1@gmail.com,a2@gmail.com]

Reason being:

xhit commented 11 months ago

Hi.

I'm with you.

Currently I'm busy, but If you need this ASAP please send a PR, I will review it.

Thanks.

suntong commented 11 months ago

Currently I'm busy, but If you need this ASAP please send a PR, I will review it.

Closing for the same reason as in #91.