Skip to content

Instantly share code, notes, and snippets.

View jhanley-com's full-sized avatar

John J. Hanley jhanley-com

View GitHub Profile
@drorata
drorata / send_email.py
Created September 27, 2017 13:45
Minimal example of sending a JSON over email
import json
# Import smtplib for the actual sending function
import smtplib
# Import the email modules we'll need
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from datetime import datetime
def send_email(data):