views:

279

answers:

1

I have an SMTP server that requires secure password authentication (e.g. Outlook requires to check SPA). Is there a way to deal with it with Django SMTPConnection? Or maybe ideas about any python solution to deal SPA?

Honestly, I couldn't find enough about SPA, to understand what is it exactly:

+1  A: 

The Django SMTPConnection which uses Python's smptlib which supports "AUTH PLAIN", "AUTH CRAM-MD5", and "AUTH LOGIN".

/usr/lib/python2.6/smtplib.py(569)

And apparently SPA is "AUTH LOGIN"

Just add EMAIL_USE_TLS to your Django settings.py

EMAIL_USE_TLS = True

Or in your SMTPConnection set use_tls=True

SMTPConnection(host=smtp_host, username=user, password=pass, use_tls=True)
Robert