mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-10 02:42:51 +02:00
Update smtp.py
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ def send_email(to_email, message, nodeID=0):
|
||||
server.login(SMTP_USERNAME, SMTP_PASSWORD)
|
||||
|
||||
# Send email; this command will hold the program until the email is sent
|
||||
server.sendmail(FROM_EMAIL, to_email, msg.as_string())
|
||||
server.send_message(msg)
|
||||
server.quit()
|
||||
|
||||
logger.info("System: Email sent to: " + to_email[:-6])
|
||||
|
||||
Reference in New Issue
Block a user