Closed lvillani closed 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.
Thanks for the PR! I will merge it as soon as you fix the two points I commented.
Just pushed a new version of the code addressing all requests.
Thanks!
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.