import traceback, smtplib, StringIO fp = StringIO.StringIO() traceback.print_exc(file=fp) message = fp.getvalue() server = smtplib.SMTP(FAILURE_SERVER) server.sendmail( FAILURE_FROM, FAILURE_TO, FAILURE_MESSAGE + '\n\n' + message, ) server.quit()
You need to create an account or log in to post comments to this site.