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)); }
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); }
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); }