Fix smtp email client

This commit is contained in:
Konrad 2016-09-27 23:56:16 -07:00 committed by GitHub
parent a283656338
commit d12e9c2582

View file

@ -10,20 +10,24 @@ import glob
import random import random
import pexpect import pexpect
import base64 import base64
import thread
# python 2 to 3 fix # python 2 to 3 fixes
try:
import _thread as thread # Py3
except ImportError:
import thread # Py2
try: try:
from cStringIO import StringIO from cStringIO import StringIO
except NameError: except ImportError:
from io import StringIO from io import StringIO
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase from email.mime.multipart import MIMEMultipart
from email.MIMEText import MIMEText from email.mime.base import MIMEBase
from email.mime.text import MIMEText
from email.header import Header from email.header import Header
from email.generator import Generator from email.generator import Generator
from email import Charset import email.charset as Charset
from email import Encoders import email.encoders as Encoders
# DEFINE SENDMAIL CONFIG # DEFINE SENDMAIL CONFIG
sendmail = 0 sendmail = 0