__author__ = 'chorton'
import smtplib
import logging

logger = logging.getLogger()
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
logger.addHandler(ch)

fromaddr = 'DL-SH-Merchant-Integration-Support@ebay.com'
toaddrs  = ['chorton@stubhub.com','protools-automationsupport@stubnoc.pagerduty.com']
subject = 'Error Report From automation-services-515660.slc01.ext.ebayc3.com'
msgtext = 'An error occurred in processing.  Please check server logs for details.'
msg = 'Subject: %s\n\n%s' % (subject, msgtext)

# The actual mail send
server = smtplib.SMTP(host='localhost')

server.starttls()
server.sendmail(fromaddr, toaddrs, msg)
server.quit()