private static string FormatAlertMessage(string message, string source) { var res = new StringBuilder(); res.AppendFormat("<p>The following error occured at {0} (server time):</p>", DateTime.Now); res.AppendLine(" <blockquote>"); res.AppendFormat(" Message: {0}<br>", message); res.AppendFormat(" Source: {0}<br>", source); res.AppendLine(" </blockquote>"); res.AppendFormat("<p>View error details at {0}/ErrorLog</p>", AppServer); return(Utils.GetHtmlMessageWrapper("Application Alert", res.ToString())); }