Workflow suspended when using Send Email action in O365

Not applicable
10 8 8,443

This information is no longer valid as features have been added to the O365 product to allow you to send mail externally. This article will remain in place but will be considered legacy.


When using the "Send Email" action in O365 your workflow immediately goes to "Suspended" status. Upon reviewing the "Internal Status" of the workflow in question you find the following error:




Resume this workflow

RequestorId: 8fa2570c-457f-f4a5-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 400 {"error":{"code":"-2130242040, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The e-mail message cannot be sent. Make sure the e-mail has a valid recipient."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"X-SP-SERVERSTATE":["ReadOnly=0"],"SPClientServiceRequestDuration":["1187"],"DATASERVICEVERSION":["3.0"],"SPRequestGuid":["8fa2570c-457f-f4a5-9908-c290c5cce87d"],"request-id":["8fa2570c-457f-f4a5-9908-c290c5cce87d"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":[""],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 08 Apr 2015 15:33:17 GMT"],"P3P":["CP=\"\""],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(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) Exception from activity Throw If Sequence Sequence TryCatch Sequence Microsoft.SharePoint.WorkflowServices.Activities.RetryForEmail HttpPost Sequence If Sequence Microsoft.SharePoint.WorkflowServices.Activities.Email Sequence Flowchart Breakingemail.WorkflowXaml_0d5d5ce6_4ef4_480f_89c5_faebe662815f


This error is due to the recipient of the email being invalid. There are a number of reasons this can happen:

1) The user is not a valid user for your office 365 tenant. Currently, we do not support sending emails outside of your tenant. This is planned to be changed in the future.

2) The account is a distribution group or a security group in Exchange for Office 365. Please see the following article where MSFT confirms this:

3) The user has not yet been populated in the "hidden user list" inside your team site. You can find the hidden user list inside each team site here: http://yoursite/_catalogs/users/detail.aspx. This hidden user list is populated when a user logs in to the team site (site collection) in question. This hidden user list works as a reference for various things in SharePoint. If the user in question is not in this list you may will receive an error upon running the workflow.

If you continue to have issues sending an email to a particular user please test this using a SharePoint designer workflow. This will confirm whether or not SharePoint online allows sending an email to this user.


Andrew Beals