Update app.py
Browse files
app.py
CHANGED
|
@@ -35,10 +35,9 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
| 35 |
msg.set_content('Content of mail sent by Python code')
|
| 36 |
|
| 37 |
with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
print('Email sent successfully!')
|
| 42 |
|
| 43 |
|
| 44 |
print("source_path: ", source_path)
|
|
|
|
| 35 |
msg.set_content('Content of mail sent by Python code')
|
| 36 |
|
| 37 |
with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
|
| 38 |
+
smtp.login("ttestswap@gmail.com", "testswap1234")
|
| 39 |
+
smtp.send_message(msg)
|
| 40 |
+
print('Email sent successfully!')
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
print("source_path: ", source_path)
|