After update alert xml still getting old style emails.
Hello,
After updating Alert xml file. I still get old version of alerts. I already knew existing alert are not going to be updated. so i create new alerts but problem is same.
I never get new version of email which i design is custom xml file. i did following steps.
1. I created a custom "CustomAlertTemplate.xml" and copy it to
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML".
2. Then use following command to make it active.
stsasdm -o updatealerttemplates -url "http://site"
-f "C:\Program Files\Common Files\MicrosoftShared\WebServerExtensions\14\TEMPLATE\XML\MyCustomAlertTemplate.xml"
3. Applied this custom template to a single list by using power shell :
add-pssnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$AlertsTemplateCollection = new-object Microsoft.SharePoint.SPAlertTemplateCollection($contentService)
$spWeb = Get-SPWeb -Identity http://dev2/
$splists = $spWeb.lists
$alertslist = $splists["Tasks"]
$alertslist.AlertTemplate = $AlertsTemplateCollection["SPAlertTemplateType.CustomAlertEmail"]
$alertslist.Update()
$spWeb.Dispose()
4. Run "iisreset" on every Frontend Server.
5. Restart the Windows SharePoint Services Timer service on each Front End Server.
6. Rerun following timmer job "Immediate Alerts" from central admin.
asim MCTS SharePoint 2007 -WSS 3.0
July 2nd, 2012 9:04pm
Hi,
Have you placed this file in each WFE servers?Thanks, Rahul Rashu
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2012 11:09pm
yes i placed it on every WFEasim MCTS SharePoint 2007 -WSS 3.0
July 3rd, 2012 11:55pm
I solved this issue.
Actually After each change in Alert.xml file. you have to perform all steps again. step 1 to step 6. then it shows me latest changes.
asim MCTS SharePoint 2007 -WSS 3.0
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2012 11:58pm