Commit 34e73bc5 authored by Carter Neeb's avatar Carter Neeb
Browse files

init

parents
import smtplib
import argparse
port = 1025
DEFAULT_SENDER = "sender@default.ca"
parser = argparse.ArgumentParser()
parser.add_argument("-r", dest="senderEmail", metavar="sender", default=DEFAULT_SENDER)
parser.add_argument("recieverEmail", metavar="reciever")
parser.add_argument("message", metavar="message")
args = parser.parse_args()
print(args.senderEmail)
print(args.recieverEmail)
print(args.message)
def email():
with smtplib.SMTP("localhost", port) as server:
server.sendmail(args.senderEmail, args.recieverEmail, args.message)
email()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment