2

I have a list that have been configure to receive incoming email. I also create event receiver for that list (on itemAdded and on itemAdding).

The problem is, my event receiver not executed when SharePoint automatically create new item via email. Any clue for this strange behavior?

  • Is ItemUpdated triggered? – Robert Lindgren Oct 1 '13 at 8:32
  • No event triggered when adding via email. When I add item via UI, all event are triggered – user19854 Oct 1 '13 at 8:40
3

Your problem is, that you use the wrong event receiver.

Use the SPEmailEventReceiver. This is the event you are looking for.

Tip: If you want to debug your custom EmailEventReceiver, you have to attach your debugger to the ows process (not the w3wp) and you have to reset the Sharepoint Timer Service after deployment. - it costed me 3 days to figure this out. See here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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