views:

514

answers:

2

Is it possible to reformat (content and look) of an alert email sent by Sharepoint 2007? If yes, how do define the format and content?

+4  A: 

There are two ways that you can customize SharePoint alerts:

  1. By modifying the template file that defines alerts, and
  2. By creating a class that implements IAlertNotifyHandler.


Modifying Alerttemplates.xml

You can modify the alert templates that SharePoint uses by copying and modifying the Alerttemplates.xml found in <12 hive folder>\Template\XML.

Once you've modified the file, you can update the alert templates in SharePoint by executing the following command:

STSADM -o updatealerttemplates -url <site URL> -filename <path to your modified file>

For more information see:


Implementing IAlertNotifyHandler This gives you more fine-grained control over the contents of emails that are sent for alerts.

You create a class that implements IAlertNotifyHandler and override the OnNotification method.

For more information see these links:

dariom
This would be a machine level change which applies to all alerts from all sites on the box right?
Troy Hunt
The changes are applied at the web application level.
dariom
A: 
tag