SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to modify the email template for a sharepoint search alert. I have done the following:

Made a copy of the following file:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\alerttemplate.xml

Renamed it to "alerttemplatetest.xml" and made my changes, then ran the following command:

stsadm -o updatealerttemplates -url http://sharepointsite -filename "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\alerttemplatestest.xml"

Then I did the following:

  • IIS Reset
  • Restart Sharepoint Timer Service

I then relized that the search alert does not use the same alerttemplate.xml file that the other alerts use because the template name is OSS.Search and that does not exist in the file.

In summary my question is how can I edit the template for the Sharepoint Search Alert Emails or if this is even possible?

share|improve this question

migrated from Feb 27 '13 at 22:59

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

I'm also not aware of how to change the Search Alert Templates by modifying some XML. However it is possible to create these templates using C# as explained here:

The important thing to note in the post is the SearchAlert class with which you can create daily/weekly alerts.

Also there is a very good article about the inner workings of Search alerts on MSDN:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.