Files
deadswitch/mail.py

14 lines
275 B
Python
Raw Normal View History

2020-10-29 13:02:00 -05:00
import smtplib
2020-10-28 15:20:03 -05:00
2020-10-29 13:02:00 -05:00
port = 25
2020-10-28 15:20:03 -05:00
2020-10-29 13:02:00 -05:00
server=smtplib.SMTP("localhost", port)
2020-10-29 14:32:17 -05:00
sender_email = "deadswitch@kawomi.com"
receiver_email = "joerg.tretter@gmail.com"
2020-10-29 13:02:00 -05:00
message = """\
Subject: Hi there
2020-10-28 15:20:03 -05:00
2020-10-29 13:02:00 -05:00
This message is sent from Python."""
2020-10-28 15:20:03 -05:00
2020-10-29 13:02:00 -05:00
server.sendmail(sender_email, receiver_email, message)