(530, '5.7.0 Must issue a STARTTLS command first. 135sm7372342lfb.28 – gsmtp',u'mail id)

Question:

I am trying to send mail using django, and I’m getting this error :

(530, '5.7.0 Must issue a STARTTLS command first. 135sm7372342lfb.28 - gsmtp',u'mail id)******

Can someone help?.

TIA

Answers:

Try adding

EMAIL_USE_TLS = True 

to your settings page where you have all your email settings. Also make sure that your gmail SMTP has the right login details and make sure that Django is using SMTP mail server.

Answered By: Zer0
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.