none
Disable mail alert when user is add to an alert

    Question

  • Hello, 

    I would like to disable the email alert that occurs when user are added.

    When we register "Everyone" on the list alert, is that all the people of the AD receive the mail or nobody?Or is that we can have another solution to not receive the first mail ? AD Group ?


    This is for a question / answer list.The business administrator wants to be able to create an alert for 3 000 users but the alert is sent to user's question only when a element is modified ... That is why we do not want the 3000 receive notification of the alert!In addition if it puts everyone it will create 130,000 alerts for the 130,000 ADAzure accounts?

    Best Regards,


    • Edited by sev75 Tuesday, May 02, 2017 2:33 PM
    Tuesday, May 02, 2017 6:58 AM

All replies

  • Hi sev75,

    The Everyone group includes all users authenticated to SharePoint. If you send alerts to Everyone, all authenticated users will get the alert emails when the changes are made in the list/item.

    What did you mean “receive notification of the alert” and “first mail”?

    If you mean the alert confirmation email “Alert <list/item> has successfully been added on <site>……” which is used to notify user that there is an alert has been setup for him, we can use code to setup alerts, and use SPAlert.Update method to control whether it sends a confirmation e-mail message or not.

    Here is a demo about how to setup alert using PowerShell without sending confirmation email:

    Add-PSSnapin microsoft.sharepoint.powershell
    
    $SPsite = Get-SPSite "http://sp/sites/<site>"
    
    $SPweb=$SPsite.Rootweb
    
    $SPlist=$SPweb.lists["list"]
    
    $SPuser = $SPweb.EnsureUser('domain\user')
    
    $SPnewAlert = $SPuser.Alerts.Add()
    
    $SPnewAlert.Title = "News Alert3"
    
    $SPnewAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::List
    
    $SPnewAlert.List = $SPlist
    
    $SPnewAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::Email
    
    $SPnewAlert.EventType = [Microsoft.SharePoint.SPEventType]::All
    
    $SPnewAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::Immediate
    
    # .Update(0) = add alert silently, .Update() = send email to user
    
    $SPnewAlert.Update(0)
    
    $SPweb.Dispose()
    
    $SPSite.Dispose()


    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, May 03, 2017 7:12 AM
    Moderator