This class must inherit from the SPItem Event Receiver class to access the event receivers.The SPItem Event Properties class is provided by the Share Point platform.That said, my argument with Sahil (see below in the original post) remains - you cannot use the SPList Item, because one cannot exist.When we need to validate something or put restriction before adding or modifying data, at that time we need to use Item Adding or Item Updating Event Handler, here I’ll demonstrate how to access fields of List into event handlers.
Step 2Enter site URL and select Deploy as a farm solution and click Finish. Step 4Select event receiver and enter the title of the event receiver. Step 5Select List Item Events in type of event receiver and select the Document Library option from the event source. Here, I have created the Employee Documents library to add and maintain documents and also created an Employee Document Log list to log the changes happening to the library.
The Item Updating list item event receiver is invoked when a user edits information about a course that already exists.
The only difference between it and the Item Adding event receiver is that it does not validate the enrollment date.
If the value equals what you want then run the worlflow. If the email is being received with any modification then you have got your flow wrong.
Martin's solution is very straightforward but you can also expand on this by using content types to allow for an approval process that performs another action.