Hi,
I am trying to send an email through code,
When I try to test in Dev, its working fine, but when I moved to production.
It is failing,
In the code, before sending an email i am trying to update the email message and send.
below is the error message:
Error Message:
Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error Sending an emailAn unexpected error occurred. at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Update(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.UpdateCore(Entity entity)
at Workflows.CustomActivities.SendEmailToContacts.sendEmailNotificationForContacts(WorkflowUtils workflowUtils, CodeActivityContext context)
at Workflows.CustomActivities.SendEmailToContacts.sendEmailNotificationForContacts(WorkflowUtils workflowUtils, CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Please help...!
*This post is locked for comments
Hi , Its very difficult to know what went wrong by looking at it.
It is very generic error - i would suggest you to look into trace logs- you will definitely get something there :
try crm diagnostic tool.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156