SPEmailEventReceiver class
SharePoint 2013
Provides a method for trapping the event when a list receives an email message.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
An incoming email event receiver must derive from this class and override the EmailReceived method.
The following code example shows how to use the SPEmailEventReceiver class in an event handler that responds to email messages received in a list by adding an item to the list.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint and Microsoft.SharePoint.Utilities namespaces.
Note |
|---|
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects. |
Show:
Note