示例#1
0
 def post(self, msg, level):
     return MailManager.send_mail(msg, level)
示例#2
0
 def send_mail(self, msg, level):
     result = MailManager.send_mail(msg, level)
     if result['result'] != error_code.SendSuccess:
         logger.error('MailServiceError code:%s, at %s' % (result['result'], time.ctime()))
     return result