Spaces:
Running
Running
Commit
·
09472b6
1
Parent(s):
1db68f0
update in smtp
Browse files
app.py
CHANGED
|
@@ -118,6 +118,9 @@ def generate_ocr(Method,img):
|
|
| 118 |
|
| 119 |
s = smtplib.SMTP_TLS('smtp.gmail.com', 587)
|
| 120 |
s.starttls()
|
|
|
|
|
|
|
|
|
|
| 121 |
s.login(sender,password)
|
| 122 |
|
| 123 |
|
|
|
|
| 118 |
|
| 119 |
s = smtplib.SMTP_TLS('smtp.gmail.com', 587)
|
| 120 |
s.starttls()
|
| 121 |
+
s.ehlo()
|
| 122 |
+
# Pretend the SMTP server supports some forms of authentication.
|
| 123 |
+
smtp.esmtp_features['auth'] = 'LOGIN DIGEST-MD5 PLAIN'
|
| 124 |
s.login(sender,password)
|
| 125 |
|
| 126 |
|