def outlook(self):
olook = win32.Dispatch("%s.Application" % app)
mail = olook.CreateItem(win32.constants.olMailItem)
mail.To = addressee # 收件人
mail.CC = cc # 抄送
mail.Subject = str(datetime.datetime.now())[0:19] + '%s' % subject1 # 邮件主题
mail.Attachments.Add(mail_path, 1, 1, "myFile")
content = """
执行测试中……
测试已完成!!
生成报告中……
报告已生成……
报告已邮件发送!!
"""
mail.Body = content
mail.Send()