By default, Go's smtp lib uses "localhost" when issuing a HELO to SMTP servers (See https://github.com/mailhog/MailHog/issues/257). Some SMTP servers reject this demanding an FQDN instead.
This PR adds a new method pool.SetHelloHostname() that instructs smtp.Client to use a custom hostname.
By default, Go's smtp lib uses "localhost" when issuing a HELO to SMTP servers (See https://github.com/mailhog/MailHog/issues/257). Some SMTP servers reject this demanding an FQDN instead.
This PR adds a new method
pool.SetHelloHostname()
that instructs smtp.Client to use a custom hostname.