How to send an email with Python?
This code works and sends me an email just fine: import smtplib #SERVER = “localhost” FROM = ‘[email protected]’ TO = [“[email protected]”] # must be a list SUBJECT = “Hello!” TEXT = “This message was sent with Python’s smtplib.” # Prepare actual message message = “””\ From: %s To: %s Subject: %s %s “”” % (FROM, … Read more