/// <summary> /// 委托实现:发送邮件 /// </summary> /// <param name="msg"></param> /// <returns></returns> bool delegate_SendMail(MessageEntity msg) { try { SMessage.SendMail(msg); DBOperate.SaveMessageLog(msg, Enum_MessageType.Mail.ToString(), null); SLog.WriteLogWithDefaultTime(msg.EMails + "发送成功"); return(msg.IsSended); } catch (Exception ex) { DBOperate.SaveMessageLog(msg, Enum_MessageType.Mail.ToString(), ex.Message); SLog.WriteLogWithDefaultTime(string.Format("发送失败:{0} 出现问题:{1}", msg.EMails, ex.Message)); return(false); } }