- Back to Home »
- Email Router Outgoing Email Delays
We have a client who uses workflows to guide their sales and marketing process very heavily and relies on certain emails being automatically sent as notifications from their CRM instance.
When we first set-up their solution we used the Outlook plug-in to send emails but as the minimum polling time for emails using the plug-in is 15 minutes this wasn’t going to work either. So, we set about using the Email Router. It was installed, setup and configured properly but for some reason there was this random delay in sending emails. Sometimes an email would be sent within a minute or 2 and other times it would take over 10 minutes. Sometimes a single email would be delivered and at other times 4 or 5 would come through at the same time?!!
We found out today what the problem was.
The issue lies firmly in the XML configuration file for the email router. The polling time for outgoing mail was set within the Microsoft.CRM.EmailAgent.xml was set to 1000 seconds. This polling was obviously based on the system time. So therefore, if the CRM Email Router polled the CRM at 10:00am and someone sent an email at 10:01 it not be delivered until 10:16ish, therefore the user would be aware of the delay. On the other hand if the user sent the email at 10:15, they would think that the emails were sending immediately “as they should be”. The solution was to change the polling time to 60 seconds (we didn’t want to push it!) and it worked a treat.
To make the change follow these steps:
- Go to your exchange server (the server where the email router is installed)
- Navigate to C:\Program Files\Microsoft CRM Email\Service
- Copy the Microsoft.CRM.EmailAgent.xml file to a safe location as a backup.
- Edit the Microsoft.CRM.EmailAgent.xml within Notepad (I prefer PSPad)
- Find the SchedulingPeriod element
- Change the value to 60 (it should be 1000 currently)
- Save the file.
- Open up the CRM Email Router and publish the changes
- Restart the Microsoft CRM Email Router service
- Your done!