SPUtility.SendEmail usage puts some hardcoded or unwanted lines.
I am using SPutiltiy.SendEmail and most of the times it embeds the following big paragraph in the body of the email. Looks to be reading from one of the files that I found in this blog. http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/e4a34a49-af24-4437-8148-2bd6237013c0/ Has there been any resolution since year 2008 . Although I do not want to modify the file directly, is there any other way of not having this big paragraph coming within the email. What is a SharePoint site? A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you: * Coordinate projects, calendars, and schedules. * Discuss ideas and review documents or proposals. * Share information and keep in touch with other people. SharePoint sites are dynamic and interactive -- members of the site can contribute their own ideas and content as well as comment on or contribute to other people's.
October 28th, 2010 5:59pm

any suggestions?
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2010 7:28pm

Hi, Please refer the link for solution. http://blogs.msdn.com/b/anolan/archive/2008/01/07/is-it-possible-to-modify-sharepoint-email-notifications.aspx thanksArup MCTS - SharePoint Play Sudoku Online
November 1st, 2010 3:45pm

I am using this code to send an email to the user asking them to check the new tasks. So it is not an out-of-box alert or something. I can use the c# based custom email but somehow SPUtility was suggested to use and when I use that it keeps putting that hardcoded para (As shown above).
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 4:14pm

If you use obejct model (SPUtility.SendEmail) then it should not sending hard coded header. Can you please paste the syntax what you are using to send email? You can try like below. SPUtility.SendEmail(SpWeb Object, true, false, recipientMailID, mailSubject, mailBody, false); thanksArup MCTS - SharePoint Play Sudoku Online
November 1st, 2010 4:30pm

SPUtility.SendEmail(oWebsite, true, true, cEmailToUser, "Check your tasks now ", "Your task list is now updated. ", true); Above is the code. Some of the parameters (like 2nd or 3rd or last one) having true or false should not have an impact on the hardcoded para that is coming now.
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 5:04pm

Looks like this could be setting in the central admin? I had another site where I don't get the above hardcoded statements? Requesting moderator to move it to 'General - setup' forum. thanks.
November 4th, 2010 5:58pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics