Tuesday, March 23, 2010

Custom Alert Templates - Larger Font

For those of you who do not feel like going through the entire alerttemplates.xml file I recently had to do it for a client who wanted larger fonts in the emails that were sent out for alerts and notifications. I changed all fonts to Tahoma 12pt except for the Header which was already large enough.  Nothing fancy. Just throwing it out there.

NOTE: Never modify the alertstemplates.xml directly.  Make a working copy and use it with the stsadm command.

Drop the file onto your server and run the following stsadm command:

Syntax: stsadm -o updatealerttemplates -url {sitecollectionurl} -f {CustomAlertTemplate XML File}
Example: stsadm -o updatealerttemplates -url {sitecollectionurl} -f C:\customalerttemplates.xml

Remember, this is per site collection and you have to re-run the command each time you update the template as it stores the alert format in the database.

MSDN Description of Pre-defined Alert Templates: http://msdn.microsoft.com/en-us/library/bb802738.aspx

Download My Customized Template


  1. I made changes and ran the stsadm command, then ran IISReset and restarted the SP Timer service and the changes are not displaying in the alerts - even alerts that are subscribed to after the change.

    Did you have any issues when making these updates? And any thoughts on how to get this to work?

  2. Thanks, I'm yet to try it out. Do we need to do an IISRESET afterward?