initial checkin

This commit is contained in:
Joe Tretter
2020-10-28 15:20:03 -05:00
commit ef627c24f6
3 changed files with 113 additions and 0 deletions

19
mail.py Normal file
View File

@@ -0,0 +1,19 @@
import smtplib, ssl
port = 465 # For SSL
password = "mailR3L4Y"
# Create a secure SSL context
context = ssl.create_default_context()
with smtplib.SMTP_SSL("kawomi.com", port, context=context) as server:
server.login("pope@kawomi.com", password)
sender_email = "pope@kawomi.com"
receiver_email = "j.tretter@gmail.com"
message = """\
Subject: Hi there
This message is sent from Python."""
server.sendmail(sender_email, receiver_email, message)