CRM 2011 Email Router

James Atherton
James Atherton used Ask the Experts™
on
I am running CRM 2011 with the latest service packs and rollups.  I have the email router configured to the best of my knowlege correctly using Office 365.  When I attempt to send an email I look in activities at the email and I have "this message has not yet been submitted for delivery".  I have searched high and low for an answer.  The email router tests fine on all accounts, everything seems to be fine, and just last night while trying to troubleshoot I got a stream of 5 emails sent from CRM, but then after that nothing, all pending again.

I am at a loss and would love it if someone chould show me the err of my ways.  I need this to work and I am truly sick of wasting time trying to make it work.

Any thoughts would be greatly appreciated, Thank you.
Untitled.png
ERouter.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
This is strange. Only place I would suggest to look in to CRM Server's event log and to check for errors. If there are no errors, I would recommend configuring tracinghttp://support.microsoft.com/kb/907490
James AthertonSystems Administrator

Author

Commented:
Just a quick update, I still have the items pending, but when I check the casemgmt account my test emails are sitting in the drafts folder, and being creaed as drafts every 2 minutes.  Does this ring a bell for anyone?
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
It seems a workflow or plugin[more likely] might be in place and the mails are going to be in Draft state unless and until you explicitly send them. In workflow, you have a step that allows you to send mail to achieve "Create and Send" functionality.
Systems Administrator
Commented:
Ok everyone, thank you for the help.  As for the direct mail from CRM the problem was actually send as permissions on the accounts.  I can't explain it completely but well, there it is.  That said, another issue has come up however.  The workflow that I have running when you create a case, update a case, escallate a case, or close a case I want to send as my casemgmt user, not as say Joe Shmo.  The emails sent by said workflow are sitting waiting with the following error.  I have checked the usual suspects like "Allow other Microsoft Dynamics CRM users to send E-mail on your behalf" setting, and making sure the security roles assigned to each user have send as other user privs but yet it still errors and still sits in queue.

Workflow paused due to error: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: User does not have send-as privilege.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147203059</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>User does not have send-as privilege.</Message>
  <Timestamp>2012-05-26T02:52:57.5722706Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147203059</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>User does not have send-as privilege.</Message>
    <Timestamp>2012-05-26T02:52:57.5722706Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText i:nil="true" />
</OrganizationServiceFault>
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
   at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
   at Microsoft.Crm.Workflow.Services.SendEmailFromTemplateActivityService.<>c__DisplayClass1.<SendEmailFromTemplateInternal>b__0(IOrganizationService sdkService)
   at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
   at Microsoft.Crm.Workflow.Services.SendEmailFromTemplateActivityService.SendEmailFromTemplateInternal(Entity emailEntity, Guid regardingId, String regardingType, Guid templateId)
   at Microsoft.Crm.Workflow.Services.SendEmailFromTemplateActivityService.ExecuteInternal(ActivityContext executionContext, SendEmailFromTemplate sendEmailFromTemplate)
   at Microsoft.Crm.Workflow.Services.SendEmailFromTemplateActivityService.Execute(ActivityContext executionContext, SendEmailFromTemplate sendEmailFromTemplate)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
James AthertonSystems Administrator

Author

Commented:
Discovered by the post owner.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial