Skip to content

Use smtplib sendmail

Kez requested to merge kez/tor-weather:use-smtplib-sendmail into main

the only way i've been able to get smtplib to send an email is by using smtplib.SMTP.sendmail and removing the smtplib.SMTP.login line. tor-weather doesn't need a long-lasting connection to the smtp server, so using sendmail is preferable to manually creating a connection, sending an email, and manually closing the connection.

the sendmail code was taken from the smtplib documentation example.

marked as a draft because this MR builds on !49 (merged)

Edited by Kez

Merge request reports

Loading