go-gomail / gomail

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

Make client's identity configurable #40

Closed lvillani closed 8 years ago

lvillani commented 8 years ago

The net/smtp library sends "localhost" unless otherwise instructed. This commit adds a new "LocalName" field to the Dialer struct that allows users to override what gets sent with SMTP's HELO command.

alexcesaro commented 8 years ago

Thanks for the PR! I will merge it as soon as you fix the two points I commented.

lvillani commented 8 years ago

Just pushed a new version of the code addressing all requests.

alexcesaro commented 8 years ago

Thanks!