Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -301,7 +301,7 @@ def send_email_with_attachment(recipient_email, subject, body, image_data):
|
|
| 301 |
# Create SMTP session for sending the mail
|
| 302 |
print(body)
|
| 303 |
context = ssl.create_default_context()
|
| 304 |
-
with smtplib.SMTP(
|
| 305 |
server.ehlo() # Can be omitted
|
| 306 |
server.starttls(context=context)
|
| 307 |
server.ehlo() # Can be omitted
|
|
|
|
| 301 |
# Create SMTP session for sending the mail
|
| 302 |
print(body)
|
| 303 |
context = ssl.create_default_context()
|
| 304 |
+
with smtplib.SMTP("smtp.gmail.com", 587) as server:
|
| 305 |
server.ehlo() # Can be omitted
|
| 306 |
server.starttls(context=context)
|
| 307 |
server.ehlo() # Can be omitted
|