";
mail.Body += body.Replace(Environment.NewLine, "
") + "
";
mail.Body += string.Format("
{0}:
{2}", Utils.Translate("post", null, defaultCulture), post.PermaLink + "#id_" + comment.Id, post.Title);
string deleteLink = post.AbsoluteLink + "?deletecomment=" + comment.Id;
mail.Body += string.Format("
{1}", deleteLink, Utils.Translate("delete", null, defaultCulture));
if (BlogSettings.Instance.EnableCommentsModeration)
{
string approveLink = post.AbsoluteLink + "?approvecomment=" + comment.Id;
mail.Body += string.Format(" |
{1}", approveLink, Utils.Translate("approve", null, defaultCulture));
}
mail.Body += "
_______________________________________________________________________________
";
mail.Body += "
Author information
";
mail.Body += "
";
mail.Body += "
Name: " + comment.Author + "
";
mail.Body += "
E-mail: " + comment.Email + "
";
mail.Body += string.Format("
Website: {0}", comment.Website);
if (comment.Country != null)
mail.Body += "
Country code: " + comment.Country.ToUpperInvariant() + "
";
if (HttpContext.Current != null)
{
mail.Body += "
IP address: " + HttpContext.Current.Request.UserHostAddress + "
";
mail.Body += "
User-agent: " + HttpContext.Current.Request.UserAgent;
}
mail.Body += "
";
mail.Body += "
";
Utils.SendMailMessageAsync(mail);
}
}
}