16 lines
382 B
Python
16 lines
382 B
Python
import smtplib
|
|
|
|
# testing:
|
|
# start dummy web server for dev with root: python3 -m smtpd -c DebuggingServer -n localhost:25
|
|
|
|
port = 25
|
|
server=smtplib.SMTP("localhost", port)
|
|
sender_email = "deadswitch@kawomi.com"
|
|
receiver_email = "joerg.tretter@gmail.com"
|
|
message = """\
|
|
Subject: Hi there
|
|
|
|
This message is sent from Python."""
|
|
|
|
server.sendmail(sender_email, receiver_email, message)
|