go-gomail / gomail

The best way to send emails in Go.
MIT License
4.33k stars 573 forks source link

Offer way to encode headers and body separately #24

Closed jfroy closed 9 years ago

jfroy commented 9 years ago

In some conditions, BASE64 encoding of headers is required, for example when a " character is present in a To: or From: address. However, setting BASE64 as the encoding will also cause the body to be BASE64 encoded, which will lead many spam filters to flag the message as spam. This is true at least for SpamSieve, but possibly many others.

alexcesaro commented 9 years ago

Thanks a lot for detailing this issue. Gomail now automatically use base64 encoding when the name in an address header needs RFC 2047 encoding and has special characters.