Spaces:
Build error
Build error
Update app.py
Browse files299 unmodified lines300301302303304305306307308309310311312313314315316299 unmodified lines # Create SMTP session for sending the mail print(body) context = ssl.create_default_context() with smtplib.SMTP(smtp_server, 587) as server: server.ehlo() # Can be omitted server.starttls(context=context) server.ehlo() # Can be omitted server.login(sender_email, sender_password) text = msg.as_string() server.sendmail(sender_email, recipient_email, text)
with smtplib.SMTP_SSL('smtp.gmail.com', 25) as smtp_server: smtp_server.login(sender, password)app.py+11