Exemplo n.º 1
0
def sendMail(receiver, title, content):
    recvs = mail_config.mail_addrs_admin.get(receiver)
    recv = ''
    for str in recvs:
        recvs = str + ','
    recv = recvs[:-1]
    # print(recv)
    mail_helper.send_mail(username=mail_config.admin.get('user'),
                          passwd=mail_config.admin.get('passwd'),
                          recv=recv,
                          title=title,
                          content=content,
                          mail_host=mail_config.default_host.get('host'),
                          port=mail_config.default_host.get('port'))
Exemplo n.º 2
0
 def test(self):
     mail_helper.send_mail('test', 'test', '*****@*****.**')
     except_info = except_helper.detailtrace()
     mail_helper.send_error_mail('出现异常,堆栈信息:' + except_info)
Exemplo n.º 3
0
 def test(self):
     mail_helper.send_mail('E-mail Send Test b', 'this E-mail is my Email send test BV ', '[email protected],[email protected]')
Exemplo n.º 4
0
 def test(self):
     str = mail_helper.send_mail('test', 'test', '*****@*****.**')
     print(str)
     except_info = except_helper.detailtrace()
     mail_helper.send_error_mail('出现异常,堆栈信息:' + except_info)
Exemplo n.º 5
0
 def test(self):
     mail_helper.send_mail('test', 'test', '*****@*****.**')
     except_info = except_helper.detailtrace()
     mail_helper.send_error_mail('出现异常,堆栈信息' + except_info)