In this article we will discuss about E-Mail Event Receivers in SharePoint 2010. Also you can check out my previous posts on:
The e-mail event receivers support e-mail–enabled list instances and events fires when the list receives e-mail messages.
Base class for email event receiver is SPEmailEventReceiver and We need to override EmailReceived virtual method.
Public class MyEmailEventReceiver:SPEmailEventReceiver
public override void EmailReceived(SPList list, SPEmailMessage emailMessage, String receiverData)
It takes 3 parameters: current list, email message in a variable type SPEmailMessage and one more string parameter to hold configuration parameter.