Skip to content

Instantly share code, notes, and snippets.

View VictoryChang's full-sized avatar

Victory Chang VictoryChang

View GitHub Profile
@bryhal
bryhal / send_email2.py
Created November 4, 2012 01:04
PYTHON: SMTP Email with HTML and Multiple Attachments
# Found most ofthis at http://ryrobes.com/python/python-snippet-sending-html-email-with-an-attachment-via-google-apps-smtp-or-gmail/
# Adapted to accept a list of files for multiple file attachments
# From other stuff I googled, a little more elegant way of converting html to plain text
# This works in 2.7 and my brain gets it.
######### Setup your stuff here #######################################
attachments = ['test_pdf.pdf', 'test_waiver.pdf']
username = '[email protected]'