SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know when and how many SPAlerts are sent to a specific user, is there any way to do this?

share|improve this question
You need to clarify as one alert can send many emails - so are you asking how many emails all alerts have been sent to a user or how many alerts a user is signed up to? – Ryan Jan 12 '11 at 12:54

Easiest way is probably just inspect your mail server logs.

The alerts are just fired out by timerjobs, not sure if it logs how many & to whom they were sent.

share|improve this answer

here is the code to achieve it:

SPSite oSiteCollection = SPContext.Current.Site;
SPWebCollection collWebsites = oSite.AllWebs;
foreach (SPWeb oWebsite in collWebsites)

    SPAlertCollection collAlerts = oWebsite.users["LoginName"].Alerts;    
    foreach (SPAlert oAlert in collAlerts)
        //do something
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.