コード例 #1
0
        /// <summary>
        /// Gửi email
        /// </summary>
        /// <param name="title"></param>
        /// <param name="sBody"></param>
        /// <param name="sMailTo"></param>
        /// <param name="sHostApp"></param>
        /// <param name="iPort"></param>
        /// <param name="sHost"></param>
        /// <param name="sTaiKhoanEmail"></param>
        /// <param name="sMatKhau"></param>
        /// <returns></returns>
        private bool SentMail(string title, string sBody, string sMailTo, string sHostApp, int iPort, string sHost, string sTaiKhoanEmail, string sMatKhau)
        {
            try
            {
                bool bolSendmail = ConvertTool.DoSendMail(sHostApp + " - Quản trị website", sMailTo, title, sBody,
                                                          iPort, sHost, sTaiKhoanEmail, sMatKhau);

                if (!bolSendmail)
                {
                    return(false);
                }

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }