Spaces:
Runtime error
Runtime error
Commit
·
f2cee81
1
Parent(s):
35f2fb6
Update main.py
Browse files
main.py
CHANGED
|
@@ -186,6 +186,9 @@ def genereteotp (email):
|
|
| 186 |
OTP += digits[math.floor(random.random()*10)]
|
| 187 |
emailOTP[email]=OTP
|
| 188 |
otp = "your otp is "+OTP
|
|
|
|
|
|
|
|
|
|
| 189 |
s = smtplib.SMTP('smtp.gmail.com', 587)
|
| 190 |
# start TLS for security
|
| 191 |
s.starttls()
|
|
@@ -201,6 +204,7 @@ def genereteotp (email):
|
|
| 201 |
msg['To'] = email
|
| 202 |
# subject of the email
|
| 203 |
msg['Subject'] = " Shakwa Textual OTP"
|
|
|
|
| 204 |
# send the message via SMTP server
|
| 205 |
s.sendmail(msg['From'], msg['To'], msg.as_string())
|
| 206 |
# terminate the SMTP session
|
|
|
|
| 186 |
OTP += digits[math.floor(random.random()*10)]
|
| 187 |
emailOTP[email]=OTP
|
| 188 |
otp = "your otp is "+OTP
|
| 189 |
+
print("---------------------****---------------------------------------")
|
| 190 |
+
print(email)
|
| 191 |
+
print(otp)
|
| 192 |
s = smtplib.SMTP('smtp.gmail.com', 587)
|
| 193 |
# start TLS for security
|
| 194 |
s.starttls()
|
|
|
|
| 204 |
msg['To'] = email
|
| 205 |
# subject of the email
|
| 206 |
msg['Subject'] = " Shakwa Textual OTP"
|
| 207 |
+
print("here to send messege")
|
| 208 |
# send the message via SMTP server
|
| 209 |
s.sendmail(msg['From'], msg['To'], msg.as_string())
|
| 210 |
# terminate the SMTP session
|