def __init__(self, to, efrom, subject, text, attach, user, pw, server, port, callback=None):
self.msg = MIMEMultipart()
self.text = text
self.attach = attach
self.to = to
self.efrom = efrom
self.callbackfunction=callback
self.gmail_user = user
self.gmail_pwd = pw
self.server=server
self.port=port
self.msg['From'] = self.efrom
self.msg['To'] = self.to
self.msg['Subject'] = subject
print "SENDMAIL: Sending started."
thread=threading.Thread.__init__(self)
return thread
评论列表
文章目录