1 #!/usr/bin/env python
2 # -*- coding:utf-8 -*-
3
4 import smtplib
5 from email.mime.multipart import MIMEMultipart
6 from email.mime.text import MIMEText
7 from email.mime.application import MIMEApplication
8
9 class Mailer(object):
10 def __init__(self,maillist,mailtitle,mailcontent):
11 self.mail_list = maillist
12 self.mail_title = mailtitle
13 self.mail_content = mailcontent
14
15 self.mail_host = "smtp.163.com"
16 self.mail_user = "your email name"
17 self.mail_pass = "your email password"
18 self.mail_postfix = "163.com"
19
20 def sendMail(self):
21