Spaces:
Build error
Build error
Update app.py
Browse files299 unmodified lines300301302303304305299 unmodified lines# Create SMTP session for sending the mailprint(body)with smtplib.SMTP_SSL('smtp.gmail.com', 25) as smtp_server:smtp_server.login(sender, password)299 unmodified lines300301302303304305306307308309310311312313314315316299 unmodified lines# Create SMTP session for sending the mailprint(body)context = ssl.create_default_context()with smtplib.SMTP(smtp_server, 587) as server:server.ehlo() # Can be omittedserver.starttls(context=context)server.ehlo() # Can be omittedserver.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