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.
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.