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
In the smtp package it is impossible to use plain authentication without calling
StartTLS. This even happens when you manually make the client with a tls.Conn. There are
times when you want to force plain auth even if the client does not know encryption is
in use. There could be a VPN or the underlying connection may be encrypted or local.
The text was updated successfully, but these errors were encountered:
I think the benefits of making sure people don't send passwords in
clear text over networks accidentally outweigh the inconvenience of
not being able to use PlainAuth when you do intend to send a password
over a network in clear text.
PlainAuth is just a helper and does not do anything that requires help
from net/smtp. I would suggest to copy the PlainAuth implementation
into your own package and delete the lines that require TLS. It's
under 20 lines of code.
I ended up just using StartTLS (instead of TLS.Conn). However, it would be nice if there
was a way to override the default.
Yes, copying the code is probably what I would do if StartTLS was not an option.
by linuxhacker100:
The text was updated successfully, but these errors were encountered: