Custom Email Alert Template Issue - Users not getting customized emails

I have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed to a list using the "Alert Me" feature.  I have renamed
the custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS.  Once users subscribe to the alerts using the list using the "alert
me" function they received the customized email as intended.  
We needed to auto-subscribe users to the email alerts so what I did was used a powershell script to add users to the alert subscriptions using the script shown in below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When I ran the script and added the users and restarted the service, all users who were auto-subscribed via this method would get the email without the customizations that were done in the custom template.
 All users who manually subscribed to the list using the "Alert Me" function would get the customized email.  
Does anyone know why users who manually subscribe would get the custom email alert and why users who were auto-subscribed using the powershell script do not get the custom email alert?

Hi,
To deploy custom alert template file, we would load changes into SharePoint and restart SharePoint 2010 Timer Service from Windows Service. If you create your own AlertTemplate in the custom_alerttemplates.xml, you will need to set the set the SPList.AlertTemplate
property of the list. Then delete and re-subscribe to the alerts for the list.
Please refer to:
http://blog.zebsadiq.com/post/SharePoint-2010-custom-alert-template.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support

Similar Messages

  • I forget the secret answer of questions asked by account. I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple. please help.

    I forget the secret answer of questions asked by account.
    I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple for the restoreing my secret Ques Answer
    please help.

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Email Alert Template Issue - List Alerts (Alert Me) emails not using customized XML alert template

    We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
    custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS.  Once users subscribe to the alerts using the list "alert me"
    function they received the customized email as intended.
    We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
    Import-Csv D:\Temp\filename.csv | ForEach-Object{
    $webUrl=$_.WebUrl
    $listTitle=$_.List
    $alertTitle=$_.AlertTitle
    $subscribedUser=$_.SubscribedUser
    $alertType=$_.AlertType
    $deliveryChannel=$_.DeliveryChannel
    $eventType=$_.EventType
    $frequency=$_.Frequency
    $oldAlertID=$_.ID
    $web=Get-SPWeb $webUrl
    $testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
    IF ($testAlert) {
    $web.Alerts.Delete([GUID]$oldAlertID)
    Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
    $list=$web.Lists.TryGetList($listTitle)
    $user = $web.EnsureUser($subscribedUser)
    $newAlert = $user.Alerts.Add()
    $newAlert.Title = $alertTitle
    $newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
    $newAlert.List = $list
    $newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
    $newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
    $newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
    if($frequency -ne "Immediate"){
    $AlertTime=$_.AlertTime
    $newAlert.AlertTime=$AlertTime
    $newAlert.Update()
    Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
    } ELSE {
    Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
    When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template.  All users who manually subscribed on their
    own to the list using the "Alert Me" function would get the customized email.
    Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?

    Hi  ,
    According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
    If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
    generic email template.
    For your issue, you can set the new alert ‘s alert template:
    http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
    Here is a good blog you can have a look:
    http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Custom Alert Email Templates Issue - List Alerts emails not using customized XML alert template

    I have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed to a list using the "Alert Me" feature.  I
    have renamed the custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and
    restarted IIS.  Once users subscribe to the alerts using the list using the "alert me" function they received the customized email as intended. 
    We needed to auto-subscribe users to the email alerts so what I did was used a powershell script to add users to the alert subscriptions using the script shown in below:
    Import-Csv D:\Temp\filename.csv | ForEach-Object{
    $webUrl=$_.WebUrl
    $listTitle=$_.List
    $alertTitle=$_.AlertTitle
    $subscribedUser=$_.SubscribedUser
    $alertType=$_.AlertType
    $deliveryChannel=$_.DeliveryChannel
    $eventType=$_.EventType
    $frequency=$_.Frequency
    $oldAlertID=$_.ID
    $web=Get-SPWeb $webUrl
    $testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
    IF ($testAlert) {
    $web.Alerts.Delete([GUID]$oldAlertID)
    Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
    $list=$web.Lists.TryGetList($listTitle)
    $user = $web.EnsureUser($subscribedUser)
    $newAlert = $user.Alerts.Add()
    $newAlert.Title = $alertTitle
    $newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
    $newAlert.List = $list
    $newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
    $newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
    $newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
    if($frequency -ne "Immediate"){
    $AlertTime=$_.AlertTime
    $newAlert.AlertTime=$AlertTime
    $newAlert.Update()
    Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
    } ELSE {
    Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
    When I ran the script and added the users and restarted the service, all users who were auto-subscribed via this method would get the email without the customizations that were done in the custom template.  All users who manually subscribed to the list
    using the "Alert Me" function would get the customized email. 
    Does anyone know why users who manually subscribe would get the custom email alert and why users who were auto-subscribed using the powershell script do not get the custom email alert?

    Hi  ,
    According to your description, my understanding is that users who were auto-subscribed using the PowerShell script do not get the custom email alert.
    For your issue, it can be caused by the auto-subscribed alert email which is generated by PowerShell script is  using OOTB alert template. You can add the following script into your script for setting
    the alerts’ alert email template:
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $AlertsTemplateCollection =new-object Microsoft.SharePoint.SPAlertTemplateCollection($contentService)
    $newAlert.AlertTemplate = $AlertsTemplateCollection["YOUR_UNIQUE_TEMPLATE_NAME_VALUE"]
    Reference:
    http://sadomovalex.blogspot.com/2012/03/one-problem-with-updating-alert.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Not getting Yahoo emails on Q5 except for a specific time span

    My Q5 started to have this issue started about 4, 5 days ago. I dont get any Yahoo emails except for an approx 5 hr time span at specific times of the day.  All other times I do not get any emails at all, not even when pressing the "refresh" icon.  
    I have deleted / rebooted/re-added the yahoo account multiple times without any improvement. I have also tested for improvement by taking away the "rim." in the settings (IMAP and SMPT), no help.
     Well, right after re-adding the acct, the missing emails showed up, but that was it.  It doesn't update my emails until that specific time of the day (for me that time span is from midnight to ~5am).  I'm able to send out email fine.  
    Anyone has any suggestions?
    Thank you very much in advance.

    Re: Yahoo.ca email account information disappears or is not recognized
    ‎11-25-2013 08:53 PM
    The password disappeared again, so I changed the password as you suggested.
    I discovered that Yahoo had changed the password requirements, and that was likely causing the problem.
    (I wish the error message had been more specific so I would have known that was the issue earlier).
    I created a new password according to the new Yahoo password requirements, and I have not had any other problems with it so far.
    Thanks.
    It was not me it was user cb_ca and the above is what they posted. You can ask that user your question, just click the envelope icon on the middle of the page near the top and you can send them a message, just enter the users name mentioned above and type your message.

  • TS1398 bought a mini and also have an IPAD2  have used ITunes to download all programs to the mini but have NOT BEEN ABLE TO have the connection to the Internet and CAN NOT get any emails. I NEED HELP!!!!!!!

    I thought when I bought a MINI that all I'd need to do is sync up with ITunes to get all apps and setting to the Mini. I was wrong as I can not connnect to the internet and can not get any emails. Have tried just about all suggestions under support  but need to reach out to actual users who may have run into similar prblem. I must be missing something as I have to believe that Apple would make it as simple/easy as possible to connect to the interne. I still have my internet connect with my Ipad2.
    appreciate any help on this one as MY WIFE is driving me crazy as she wants to use the internet with HER MINI!!!
    Thx  Wayne

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Not getting any email notification after configuration

    Hi
    I had configured in portal for E-Mail notification by using the following link .
    http://help.sap.com/saphelp_erp2004/helpdata/en/5a/d089b338769f40a3a86ea938701c3f/frameset.htm
    but still i am not getting any email notification when i reset or lock the user .
    Can any one tell me what should be done for that.
    Thanks
    shashank

    Hi shashank,
    you referenced the configuration for the collaboration service e-mail transport.
    This is needed for instance for the collaboration rooms invitation.
    For notifications about user management you will have to configure e-mail notification in the UME.
    See:
    http://help.sap.com/saphelp_erp2004/helpdata/en/41/080aab7cefe34d8acb04861a467efc/content.htm
    Best regards,
    Stefan Brauneis

  • Why can i not get my email to send from my mac? the outgoing server keeps saying its offline?!

    why can i not get my email to send from my mac? the outgoing server keeps saying its offline?! any help would be greatly appreciated

    markwmsn wrote:
    To each his own. I own Outlook, but I avoid using it like the plague. The only Mac mail software I have liked better than Apple's Mail was Qualcomm's Eudora, which is no longer updated or even available, won't run without Rosetta, and unfortunately never quite got the hang of IMAP.
    Check out this post regarding this user's continuing use of Eudora on his Lion MacBook:
    Shield Eudora from Lion's Claws
    A thousand thanks and kudos to Michael for this fabulously excellent thread!
    Eudora's now happy in her new Snow Leopard VM home on my Lion ModBook!
    Appears essential to keep resource-forked data off Lion disk:
    First attempt with Eudora on SL VM was sharing data on Lion disk. Error messages on open like "can't find Table of Contents" suggest Lion ate resource forks crucial to Eudora.
    Found success by transferring data from SL Mac to thumb drive, then mounted drive in SL VM so Lion couldn't touch.
    While Michael warns against storing data in VM, appears there's no choice with Eudora. At least She's enthroned on a mirrored RAID.
    There is Nothing like Eudora! (to tune of "There is Nothing Like a Dame" from South Pacific -- Oops! my gray hair is showing!)
    (It's amazing Parallels can force Lion to store taboo resource forks. Thank God for code warriors!)
    B
    http://forums.macrumors.com/showpost.php?p=16496788&postcount=355

  • HT1688 Not getting important emails to my yahoo email account

    I'm not getting important emails from my job to my yahoo email account

    And what does this have to do with the iPhone?
    Check the Yahoo account on a computer, are the emails there?  If not... contact Yahoo and the email admin at work to address the issue.

  • Some external Users are getting Duplicate Emails from our domain

    Some external Users are getting Duplicate Emails from our domain. I have Exchange 2013 and is properly configured. A user reported me that, I sent one email to the other domain's user, and it was delivered twice after 1 or 2 hours.  I checked the Message
    track log on exchange servers and email was resubmitted and sent from the edge server after 2 hours.
    I have no idea why this is happening? can you please help me on this issue.

    Hi Aleem,
    Maybe some hidden rules cause this, I suggest use MFCMapi tool to double check whether there is any hidden rules exist.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • I do not get an email after password recovery

    I do not get an email after password recovery

    10/26/13 I have tried several times to no avail today. Oddly, the password was saved under my main email addree to get into the forum but I can not get downloads to download.
    Is there an issue with Apple server responding to sending password recovery to my main email address today?

  • I have updated my iphone 5s to iOS8 but it has my old icloud account, how can i change the icloud email address as i can not get passed this page?? please help :-(

    i have updated my iphone 5s to iOS8 but it has my old icloud account, how can i change the icloud email address as i can not get passed this page??
    I do not know the log in details and no longer have that icloud email address !!
    please help :-(

    That's Activation Lock. You will need to remember the Apple ID and password you used to set up the phone.
    If you can't remember them, you can go to iforgot.apple.com to try to recover the information.
    If you are the original owner of the phone & have proof of purchase, you can try calling Apple to see if they can assist also.
    ~Lyssa

  • When i try to set up my icloud account the system says it is sending me an email to verify.  I never get the email and it is not in my spam filter.  How can i get set up??

    when i try to set up my icloud account the system says it is sending me an email to verify.  I never get the email and it is not in my spam filter.  How can i get set up??

    Make sure that your Apple ID is your email address and you do not have any other or old IDs associated with you. Go to www.appleid.apple.com and confirm this info. Make sure that the email address you are trying to sign up with is your primary one.

  • How do I get my incoming emails in Mail on my Imac to automatically go to Icloud?  My sent emails go there automatically but not my incoming emails.

    How do I get my incoming emails in Mail on my Imac to automatically go to Icloud?  My sent emails go there automatically but not my incoming emails.  I'm using OS X 10.8.5.

    No, I'm not using the icloud email address.  I am using my email address [email protected]  Let me try to explain what I'm trying to do.  I'd like the emails that I send from and that are sent to my pacbell.net email address to also show up on icloud so if something happens to my imac which is the primary computer my emails are preserved on Icloud and I can access them there.
    Is that possible?
    Note:  I have been able to move my pacbell.net emails to the icloud account manually.

  • When I put my Apple ID in to get apps it says I will receive an email with a link to verify my account I'm not getting the email or link

    When I put my Apple ID in to get apps it says I will receive an email with a link to verify my account I'm not getting the email or link. have iPhone 4

    Greetings Seahawks2014, 
    Thank you for contributing to the Apple Support Communities. 
    If you have not received a verification email from Apple, the tips in this article can help:
    If you didn't receive your verification or reset email - Apple Support
    Best Regards,
    Jeremy 

Maybe you are looking for

  • Error while opening the web page

    Hi,   i am trying to start the srm login page using web. with the service BBPSTART..its not opening it shows ' Firefox can't establish a connection to the server at xxxx.xxx'. what might be the problem... kindly help me with it... thx.

  • After Effects CC 2014 RAM preferences and performance problem

    I have a RAM issue with AE CC 2014. Soon after updating, I began receiving errors that there was not enough RAM for other applications. I checked the preferences, and sure enough "RAM reserved for other applications:" was set to 0. I then changed it

  • Blank Screen while navigating from one screen to another in a web applicati

    Blank Screen while navigating from one screen to another in a web application. While navigating through the screens of the web-based application, I get blank screen at times. The application menu bar is still visible and the header and footer jsps ar

  • How to reset or change "what should firefox do with this file" option in Firefox 3.6.6

    How to reset or change "what should firefox do with this file" in Firefox 3.6.6. Accidentally I changed it to save file for .pdf files and now I want to reset it to default asking whether to open or save. any help please Thanks, raj

  • How to get VPN access on my MAC

    My new job requires me to have a VPN connection to get to my OWA email and work internet site from my personal computer. The instructions are very simple, but they do not work on a MAC. Please help!!!!