class SendEmail(object): def __init__(self, type, to_addr): self.to_addr = to_addr self.sys_date = time.strftime('%Y-%m-%d', time.localtime()) content = u'这是测试邮件内容'if type == 'hichina': # 阿里企业邮箱 self.from_addr = 'username@520czj.com' self.password =…