19 lines
476 B
Python
19 lines
476 B
Python
|
|
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)
|