1

I am currently developing an event receiver for an email enabled list and I'm confused as to how to correctly handle the item being added to the list.

On one hand I have the ItemAdded event and on the other I have the EmailReceived event. Now I understadn these are two different events but why wouldn't or couldn't I use the ItemAdded event opposed to the EmailReceived event? Does the EmailReceived call the ItemAdded event from within or is there something that I am missing here.

1 Answer 1

0

You don't need Item added event for that.You can use Email Received method to trap the event when list receive an email message

Email Received is fired just after the incoming email is received to the list before any other item event receivers

Item adding is also fired after that.

https://msdn.microsoft.com/EN-US/library/microsoft.sharepoint.spemaileventreceiver.aspx

2
  • Thats what I'm trying to understand. The way I understand thing s is that the EmailRecieved handles adding the item to a list, and that there is no need to handle ItemAdding anymore
    – Marqueone
    Commented Jun 18, 2015 at 21:42
  • Yes if you want to handle email messages no need to use item adding.Please upvote this if it helped you.Thanks
    – Amit Kotha
    Commented Jun 18, 2015 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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