public static string GenerateDicussionThreadBody(SPListItem item) { // Build the body that will be used in the thread. StringBuilder body = new StringBuilder(); body.Append(@"<table>"); body.AppendFormat(@"<tr><td><strong>Name:</strong></td><td> </td><td>{0}</td></tr>", item.DisplayName); body.AppendFormat(@"<tr><td><strong>View Properties:</strong></td><td> </td><td><a href='{0}'>{1}</a></td></tr>", item.DisplayFormUrl(), item.Url); body.Append(@"</table>"); body.Append(@"<br/><div>Reply to this post to start a discussion around this item.</div>"); return body.ToString(); }