message = 'Subject: {} {}'.format(SUBJECT, TEXT)
server = smtplib.SMTP(SERVER) server.sendmail(FROM, TO, message) server.quit()