Custom Email Providers for Microsoft Dynamics CRM
An email provider is a pluggable component that is integrated with the Microsoft Dynamics CRM E-mail Router service. The provider is responsible for specialized email processing and interfacing with an email protocol. The E-mail Router manages the routing of email to or from the Microsoft Dynamics CRM platform. Other forms of messaging, such as a fax, InfoPath form, out-of-office notification, and more are not supported by the router. The E-mail Router is supported by on-premises, Internet-facing, hosted, and online versions of Microsoft Dynamics CRM.
The Microsoft Dynamics CRM E-mail Router includes different email providers, each implementing a particular email protocol. For example, the POP3 email provider examines email messages that are received by a POP3 mailbox and calls into Microsoft Dynamics CRM to create email activities. The SMTP email provider connects to Microsoft Dynamics CRM to download email activities waiting to be sent, composes the email messages, and submits the email messages to an SMTP server.
For each type of email provider, several instances of the provider may be executing at the same time. For example, at a given time, five instances of the POP3 email provider may be running, each processing email messages from one mailbox and delivering email to a different organization.
In addition, the platform supports the integration of custom email providers to the E-mail Router service to extend or customize the email handling functionality of Microsoft Dynamics CRM. An extensible framework based on the concept of email providers and XML files is provided to develop custom providers. This email provider documentation explains how you can extend the object model to build your own highly specialized email provider.
From a design perspective, each type of email provider should accept configuration parameters. Two examples of configuration parameters are name of the mailbox to connect to and name of the email server to connect to. Some email providers may also have to persist run-time state information. For example, a provider might need persistent values for the time stamp of the last processed message or number of email messages processed to this point. Such state information should not be lost if the E-mail Router service is restarted.
Documentation about writing email providers is not available in this Microsoft Dynamics CRM SDK release. Refer to the E-mail Providers documentation in the Microsoft Dynamics CRM 4.0 SDK.
Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2012 Microsoft Corporation. All rights reserved.