示例#1
0
        public void SendPasswordReset(string email, string resetLink)
        {
            var          mailSender = new MailServiceSendGrid(ConfigSettingsService.Get("NotificationMailSettingsSendGrid"), _logService);
            const string template   = "Ссылка для восстановления пароля <a target='_blank' href='{0}'>{0}</a>.";

            mailSender.SendMail(email, "Восстановление пароля", string.Format(template, resetLink));
        }
示例#2
0
        public void SentComplainMail(User user, string url, string reason)
        {
            var    mailSender  = new MailServiceSendGrid(ConfigSettingsService.Get("NotificationMailSettingsSendGrid"), _logService);
            string displayName = user.Name + "(" + user.UserId + ")";

            mailSender.SendMail("[email protected],[email protected]", "Жалоба пользователя " + displayName
                                , string.Format("<b>Жалоба пользователя на <a href='https://kinkylove.com{0}' href>изображение</a></b><br/><br/>", url) + Environment.NewLine + "Причина: " + reason
                                , user.Email, displayName);
        }
示例#3
0
        public void SentMailToSupport(User user, string feedBackMail, string message)
        {
            var    mailSender  = new MailServiceSendGrid(ConfigSettingsService.Get("NotificationMailSettingsSendGrid"), _logService);
            string displayName = user.Name + "(" + user.UserId + ")";

            mailSender.SendMail(/*"*****@*****.**"*/ "[email protected],[email protected]", "Заявка пользователя " + displayName
                                , string.Format("<b>Заявка пользователя <a href='https://kinkylove.com/{0}' href>{1}</a></b>:<br/><br/>", user.UserId, displayName) + Environment.NewLine + message.Replace(Environment.NewLine, "<br/>")
                                , feedBackMail, displayName);
        }