diff options
author | dk-15 | 2017-05-18 17:29:35 +0530 |
---|---|---|
committer | dk-15 | 2017-05-18 17:36:23 +0530 |
commit | 1dc60aad138f766764df30bcd2f6c517e5dbd912 (patch) | |
tree | 055fa66f94510b5658f4c350814047a9cec8179f /sbhs_server/helpers | |
parent | 5cab3891862fa9cb64bf6f2be2c53be98a491aca (diff) | |
download | SBHS-2018-Rpi-1dc60aad138f766764df30bcd2f6c517e5dbd912.tar.gz SBHS-2018-Rpi-1dc60aad138f766764df30bcd2f6c517e5dbd912.tar.bz2 SBHS-2018-Rpi-1dc60aad138f766764df30bcd2f6c517e5dbd912.zip |
Confirmation mail working
Diffstat (limited to 'sbhs_server/helpers')
-rw-r--r-- | sbhs_server/helpers/mailer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbhs_server/helpers/mailer.py b/sbhs_server/helpers/mailer.py index 7c58f95..e24d3e5 100644 --- a/sbhs_server/helpers/mailer.py +++ b/sbhs_server/helpers/mailer.py @@ -7,10 +7,11 @@ def email(to, subject, message): smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo() - smtpserver.esmtp_features['auth']='LOGIN DIGEST-MD5 PLAIN' + #smtpserver.esmtp_features['auth']='LOGIN DIGEST-MD5 PLAIN' smtpserver.login(settings.EMAIL_HOST_USER, settings.EMAIL_HOST_PASSWORD) header = 'To: ' + to + '\n' + 'From: ' + settings.EMAIL_HOST_USER + '@iitb.ac.in\n' + 'Subject: ' + subject +' \n' msg = header + '\n' + message + '\n\n' - smtpserver.sendmail(settings.EMAIL_HOST_USER + '@iitb.ac.in', to, msg) + #smtpserver.sendmail(settings.EMAIL_HOST_USER + '@iitb.ac.in', to, msg) + smtpserver.sendmail(settings.EMAIL_HOST_USER , to, msg) smtpserver.close()
\ No newline at end of file |