go-pkgz / email

Email library to send simple messages
https://go-pkgz.umputun.dev/email/
MIT License
21 stars 6 forks source link

fix wrong SMTP client host #12

Closed paskal closed 2 years ago

paskal commented 2 years ago

Before that fix, the "failed to auth to smtp smtp.eu.mailgun.org:587, wrong host name" error happens when one tries to use the library with StartTLS. Fixes problem in https://github.com/umputun/remark42/discussions/1359.

I've tested postmarkapp and SendGrid and Mailgun to verify it works: StartTLS works only after the change.