You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be good if a manager could (optionally) send out an email upon shutdown and possibly upon a few other actions. This turns out to be straightforward to do in Python:
importsmtplib, sslport=465# For SSLsmtp_server="smtp.gmail.com"sender_email="[email protected]"# Enter your addressreceiver_email="[email protected]"# Enter receiver addresspassword=input("Type your password and press enter: ")
message="""\Subject: Hi thereThis message is sent from Python."""context=ssl.create_default_context()
withsmtplib.SMTP_SSL(smtp_server, port, context=context) asserver:
server.login(sender_email, password)
server.sendmail(sender_email, receiver_email, message)
We would likely recommend building a dummy account to do this, but fits in well to our current structure and can be called during the shutdown procedure.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It would be good if a manager could (optionally) send out an email upon shutdown and possibly upon a few other actions. This turns out to be straightforward to do in Python:
We would likely recommend building a dummy account to do this, but fits in well to our current structure and can be called during the shutdown procedure.
The text was updated successfully, but these errors were encountered: