Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29980

SMTP No Suitable Auth

$
0
0

I wrote an email script, and I have gotten my company to allow my IP address access to the SMTP Relay server But I get this error:

SMTPException: No suitable authentication method found.

context = ssl._create_unverified_context()
server = smtplib.SMTP('server###.nyc.org',587) #server### is replaced by actual string
server.connect("server###.nyc.org",587)
server.ehlo() # Can be omitted
server.starttls(context=context) # Secure the connection
server.ehlo() # Can be omitted
server.login(sender_email, password)


server.sendmail(
sender_email,rcpt, message.as_string())

Non of the methods I search for help, I have tries SMTP_SSL, ssl.create_default_context(), changing ehlo to helo, and switching ports.


Viewing all articles
Browse latest Browse all 29980

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>