You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently attempted to switch to this library to replace https://github.com/go-gomail/gomail as it has been abandoned. I specifically needed the custom connection feature that is provided here to customize the dialer.
Additionally, I wanted to be able to specify that TLS is mandatory.
Right now the behavior for Encryption.STARTTLS is such that it checks with the server to see if STARTTLS is supported. If it is not, it simply falls back to not using TLS. I appreciate this because I can "opportunistically" enable STARTTLS in my application without having to worry about the server.
Still, I would like the option to throw an error if the SMTPServer is configured with TLSMandatory.
gomail had the same issue and merged a fix for it described here: go-mail/mail#23
I tried to put up a PR to this effect but I do not have write access to the repo. Is this something we think we could support?
The text was updated successfully, but these errors were encountered:
danerubado-wk
changed the title
Add an option for mandatory TLS
Add an option for mandatory TLS on SMTPServer
May 8, 2024
Hello!
I recently attempted to switch to this library to replace https://github.com/go-gomail/gomail as it has been abandoned. I specifically needed the custom connection feature that is provided here to customize the dialer.
Additionally, I wanted to be able to specify that TLS is mandatory.
Right now the behavior for
Encryption.STARTTLS
is such that it checks with the server to see if STARTTLS is supported. If it is not, it simply falls back to not using TLS. I appreciate this because I can "opportunistically" enable STARTTLS in my application without having to worry about the server.Still, I would like the option to throw an error if the
SMTPServer
is configured withTLSMandatory
.gomail had the same issue and merged a fix for it described here: go-mail/mail#23
I tried to put up a PR to this effect but I do not have write access to the repo. Is this something we think we could support?
The text was updated successfully, but these errors were encountered: