change mail to localmail

This commit is contained in:
Joe
2020-10-29 13:02:00 -05:00
parent ef627c24f6
commit fc52180497

16
mail.py
View File

@@ -1,16 +1,10 @@
import smtplib, ssl
import smtplib
port = 465 # For SSL
password = "mailR3L4Y"
port = 25
# 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"
server=smtplib.SMTP("localhost", port)
sender_email = "pope@home.kawomi.com"
receiver_email = "pope@kawomi.com"
message = """\
Subject: Hi there