示例#1
0
        public bool TestSendMail()
        {
            try
            {
                HBIMSNService.LeoMsgSrv.Message leoMsg = new HBIMSNService.LeoMsgSrv.Message();
                return leoMsg.SendMail("*****@*****.**", "*****@*****.**", "", "", null, "", "", false, "", "");

            }
            catch (Exception ex)
            {

                Common.General.JobLoger.Error(ex);
                return false;
                //  throw;
            }
        }
示例#2
0
        public bool SendMail(string strSender, string strReceiver, string strCC, string strBcc, AttachFile[] AttachFiles, string strSubject, string strContent, bool bIsHtml, string strCreateBy, string strSysID)
        {
            try
            {
                HBIMSNService.LeoMsgSrv.Message leoMsg = new HBIMSNService.LeoMsgSrv.Message();
                return leoMsg.SendMail(strSender, strReceiver, strCC, strBcc, AttachFiles, strSubject, strContent, bIsHtml, strCreateBy, strSysID);

            }
            catch (Exception ex)
            {

                Common.General.JobLoger.Error(ex);
                return false;
                //  throw;
            }
        }