New Comment added by {0}
", comment.Author);
sb.AppendFormat("{0}
", comment.Content.Replace(Environment.NewLine, "
"));
sb.AppendFormat(
"
{0}:
{3}",
Utils.Translate("post", null, defaultCulture),
this.PermaLink,
comment.Id,
this.Title);
sb.Append("
_______________________________________________________________________________
");
sb.AppendFormat(
"
{1} ", unsubscribeLink, Utils.Translate("commentNotificationUnsubscribe"));
var mail = new MailMessage
{
From = new MailAddress(BlogSettings.Instance.Email, BlogSettings.Instance.Name),
Subject = $"New comment on {Title}",
Body = sb.ToString()
};
mail.To.Add(email);
Utils.SendMailMessageAsync(mail);
}
}
///