jordan-wright / email

Robust and flexible email library for Go
MIT License
2.61k stars 324 forks source link

Use mail.Address instead of plain strings #129

Open ivanjaros opened 3 years ago

ivanjaros commented 3 years ago

Use mail.Address.String() for headers, where full format works, and use mail.Address.Address for smtp's mail and rcpt methods to make it work with the smtp protocol.

bosim commented 3 years ago

You mean what is done in #132 ?

ivanjaros commented 3 years ago

no. i mean the mail address object should be used in place of string arguments, ie. every occurrence of email should be an object.

bosim commented 3 years ago

Make sense, however it will break existing functionality, and will not make a big difference, since the library anyway use Address.String() for serialization.