user63503
user63503

Reputation: 6473

python and sll/Exchange 2007: No suitable authentication method found

I'm trying to send emails from a python script with smtplib, and it works with no problems with smtp through Exchange 2003, but with Exchange 2007 shows:

SMTPException: No suitable authentication method found.

Python code is the same in both cases (except server and login information of course).

I'm passing username and password in a script in plain text, and looks like Exchange 2007 is not configured to work with AUTH_PLAIN = "PLAIN" (line 545 of smtplib.py), and I don't know where to disable ssl there.

Would appreciate any ideas.

Upvotes: 2

Views: 8898

Answers (1)

JohnMudd
JohnMudd

Reputation: 13813

You might need to switch to STARTTLS authentication. Here's an example that helped me.

How To Send Email In Python Via SMTPLIB

Upvotes: 2

Related Questions