def post(self, msg, level): return MailManager.send_mail(msg, level)
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