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:
- By modifying the template file that defines alerts, and
- 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
2009-08-14 11:54:54
This would be a machine level change which applies to all alerts from all sites on the box right?
Troy Hunt
2009-08-16 02:02:39
The changes are applied at the web application level.
dariom
2009-08-16 12:29:46
A:
tag
2009-08-17 07:45:30