Example #1
0
        public bool SendSMS(string strReceiver, string strSubject, string strContent, string strSysID, string strSysPwd)
        {
            try
            {
                HBIMSNService.LeoMsgSrv.Message leoMsg = new HBIMSNService.LeoMsgSrv.Message();
                return leoMsg.SendSMS(strReceiver, strSubject, strContent, strSysID, strSysPwd);

            }
            catch (Exception ex)
            {
                Common.General.JobLoger.Error(ex);
                return false;
                //  throw;
            }
        }
Example #2
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;
            }
        }
Example #3
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;
            }
        }