コード例 #1
0
        private bool SendMail(UserVo userVo)
        {
            Emailer      emailer = new Emailer();
            EmailMessage email   = new EmailMessage();

            email.To.Add(userVo.Email);
            string name     = userVo.FirstName + " " + userVo.MiddleName + " " + userVo.LastName;
            string password = Encryption.Decrypt(userVo.Password);

            email.GetForgotPasswordMail(userVo.LoginId, password, name);
            bool isMailSent = emailer.SendMail(email);

            return(isMailSent);
        }