SharePoint Blog – René Hézser

EventHandler which sends an Email for new/changed items

What do you do if you want to be alerted for changes in a list?

Right. You set an alert. Or you can create a workflow with your SharePoint Designer. But there is a different way. With my "RH.ItemNotifier" Feature, you can configure alerts through the settings of a list.

Configure Users which need to be emailed for new items or changes to existing ones.

So why would you use this solution to create alerts? Well, you don’t :-)
I created this as a proof of concept with some functionality which might come handy sometimes:

  • EventReceiver for lists/document libraries
  • Send an Email through the SharePoint OM
  • Deactivate a feature on all webs in your farm
  • Build a custom aspx page in your layouts folder to handle the user configuration

Feel free to look into the code, and take what you need.

Download Download the sourecode here
Download Download the SharePoint solution here

4 comments for “EventHandler which sends an Email for new/changed items

  1. 7th November 2009 at 13:58

    hi,

    This is gre8..i want to use it..can you pls let me know that how can i use it

  2. 18th November 2009 at 20:50

    Hi David,
    quote: “You set an alert.”

    You don’t need this. It was just a test. You can recycle my code, but if you want to be notified for changes, configure yourself an alert :-)

    René

  3. 20th November 2009 at 06:46

    ok fine. I have done the changes but this is working for immediate alert. How can i send daily summary instead of immediate.

    Please reply soon its very very urgent..:-)

  4. 23rd December 2010 at 15:34

    where do these email id get stored

Leave a Reply

Your email address will not be published. Required fields are marked *