Outbound Provider Configuration Settings
![]() |
The following settings are specific to outbound providers. Be aware that all time intervals in the configuration file are specified in milliseconds.
| Tag Name | Description |
| UserId | Identifies the Microsoft Dynamics CRM ID of the user whose outgoing e-mail messages should be processed. Multiple UserId tags are supported within ProviderConfiguration tags. |
| QueueId | Identifies the Microsoft Dynamics CRM ID of the queue whose outgoing e-mail messages should be processed. |
| EmailUseSsl | Specifies if the Secure Sockets Layer protocol should be used when it sends e-mail messages. Supported values are true and false. |
| DeliveryMethod | Identifies the delivery method for sending e-mail. Supported values are the same as is used in System.Net.Mail.SmtpDeliveryMethod. |
| PendingStatusDelay | Defines the time period delay after the last e-mail send action. The E-mail Router delays this period of time before it sends out e-mail again. |
| SendingStatusDelay | Defines the time period delay after which an unsent e-mail should be reprocessed. |
| CodePage | Defines the codepage to be used when it sends e-mail. |
| MaximumDeliveryAttempts | Defines the maximum number of tries performed by the E-mail Router to send the e-mail out. If the maximum threshold is reached, the status of the e-mail in Microsoft Dynamics CRM will be set to "Failed". |
| BatchSize | Describes how many users and queues to batch together when it makes one BackgroundSendEmail request. The BackgroundSendEmail request is made to download pending e-mail messages from Microsoft Dynamics CRM. |
| RequestBatchSize | Defines the maximum number of e-mail messages to download in one BackgroundSendEmail request. |
Example
The following code shows an example of a ProviderConfiguration settings XML fragment for an outbound provider in the configuration XML file.
<ProviderConfiguration deploymentId="fd880e79-6f1b-4e40-aa05-628b845653fb">
<ProviderAssembly>Microsoft.Crm.Tools.EmailProviders.dll</ProviderAssembly>
<ProviderClass>
Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider
</ProviderClass>
<CrmServerUrl>http://serverName/organizationName</CrmServerUrl>
<CrmAuthMode>WindowsAuthentication</CrmAuthMode>
<CrmUser>domainName\administrator</CrmUser>
<CrmPassword>
{2A48C4DB-F2BF-48DF-A8EF-20F531EA9BAA}:jEPrLEnKMdMI+jgjIAabJg==@0HlCR312abwYDupnkrAi8A==
</CrmPassword>
<EmailServer>emailServerName</EmailServer>
<EmailAuthMode>WindowsAuthentication</EmailAuthMode>
<UserId>9e80ac64-c82d-dd11-8246-0013720ec2db</UserId>
<UserId>17d87ab0-c62d-dd11-8726-0013720ec2db</UserId>
<Target>emailServerName</Target>
<Direction>Outbound</Direction>
<LogLevel>1</LogLevel>
<CacheCapacity>1024</CacheCapacity>
<ConnectionTimeout>300000</ConnectionTimeout>
<PollingPeriod>60000</PollingPeriod>
<MaxMessageCount>1000</MaxMessageCount>
<EmailPort>25</EmailPort>
<EmailUseSsl>false</EmailUseSsl>
<DeliveryMethod>Network</DeliveryMethod>
<PendingStatusDelay>30000</PendingStatusDelay>
<SendingStatusDelay>60000</SendingStatusDelay>
<CodePage>Utf-8</CodePage>
<MaximumDeliveryAttempts>10</MaximumDeliveryAttempts>
<BatchSize>5</BatchSize>
<RequestBatchSize>5</RequestBatchSize>
</ProviderConfiguration>
See Also
Reference
© 2010 Microsoft Corporation. All rights reserved.
