initial checkin
This commit is contained in:
19
mail.py
Normal file
19
mail.py
Normal 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)
|
||||
Reference in New Issue
Block a user