Пример #1
0
        /// <summary>
        ///Send mail for Change password
        /// <param name="sMTPDetails"></param>
        /// <param name="emailId"></param>
        ///  <param name="content"></param>
        ///   <param name="TenantId"></param>
        /// </summary>
        public bool sendMailForChangePassword(SMTPDetails sMTPDetails, string emailId, string content, int TenantId)
        {
            bool isSent = false;

            try
            {
                CommonService commonService = new CommonService();
                isSent = commonService.SendEmail(sMTPDetails, emailId, "EasyRewardz User Created", content, null, null, TenantId);

                return(isSent);
            }
            catch (Exception)
            {
                isSent = false;
            }

            return(isSent);
        }
Пример #2
0
        /// <summary>
        ///Send mail for forget password
        /// <param name="sMTPDetails"></param>
        /// <param name="emailId"></param>
        /// <param name="subject"></param>
        ///  <param name="content"></param>
        ///   <param name="TenantId"></param>
        /// </summary>
        public bool sendMailForForgotPassword(SMTPDetails sMTPDetails, string emailId, string subject, string content, int TenantId)
        {
            bool isSent = false;

            try
            {
                CommonService commonService = new CommonService();
                isSent = commonService.SendEmail(sMTPDetails, emailId, subject, content, null, null, TenantId);

                return(isSent);
            }
            catch (Exception)
            {
                isSent = false;
            }

            return(isSent);
        }