Redmind commited on
Commit
c7cd792
·
verified ·
1 Parent(s): 5ba2f66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(smtp_server, 587) as server:
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