go-gomail / gomail

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

No way to set more than one address header with proper encoding #26

Closed jfroy closed 9 years ago

jfroy commented 9 years ago

With the current API, you can call SetAddressHeader once, which will pass the input through FormatAddress and set the header, or you can format multiple addresses with FormatAddress and then set the address header with a slice containing the formatted addresses.

However, the second method does not work because FormatAddress may encoding an address as needed. Then, SetHeader will encode the address again, yielding a twice-encoded final value.

alexcesaro commented 9 years ago

I do not have this issue. Could you show me your code?