Skip to content

Instantly share code, notes, and snippets.

@austinwk
austinwk / email.py
Last active April 17, 2021 11:12
Send an email using python builtins
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
def main():
# Sender's info
# Will vary depending on the client (gmail, outlook, etc)
address = 'you@gmail.com'
host = 'smtp.office365.com'