Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

The email must have at least one recipient before it can be sent.

Posted on by 200

Hello I am getting the below error in a workflow.

The workflow steps are as follows.

1.Create Email (set properties email from, subject, body  )

2.Update email bcc fields and send email with custom activity. 

The issue was resolved after setting up to field in step 1. However, I do not want any to fields in this email. Any solutions? Thanks

Annotation-2019_2D00_05_2D00_14-144846.jpg

*This post is locked for comments

  • Suggested answer
    Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: The email must have at least one recipient before it can be sent.

    Hi, To is mandatory among all recipient.

    Here are some tips to avoid such an exceptions.

    https://vjcity.blogspot.com/2019/07/the-email-must-have-at-least-one.html

  • Suggested answer
    Braccialle Profile Picture
    Braccialle 260 on at
    RE: The email must have at least one recipient before it can be sent.

    I received the same error when setting up a new workflow on the Lead entity just to send email. At first i used Customer (Lead) and added this to the Field To: (See Below). After further testing I set to this field To:Lead and this worked and completed workflow successfully. Provided the created by user sending the email has a mailbox associated email was received.

    pastedimage1563531865795v2.png

    pastedimage1563531521755v1.png

    Plugin Trace:

    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep1]

    Error Message:

    Unhandled exception:
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: The e-mail must have at least one recipient before it can be sentDetail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ActivityId>db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</ActivityId>
      <ErrorCode>-2147218684</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiExceptionSourceKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.EmailService</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: The e-mail must have at least one recipient before it can be sent ---&gt; Microsoft.Crm.CrmException: The e-mail must have at least one recipient before it can be sent
       at Microsoft.Crm.Common.ObjectModel.EmailService.&lt;&gt;c__DisplayClass26_0.&lt;Send&gt;b__0()
       at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
       at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiStepKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">05cdbb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiDepthKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiActivityIdKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <HelpLink>http%3a%2f%2fgo.microsoft.com%2ffwlink%2f%3fLinkID%3d398563%26lcid%3d1033%26error%3dMicrosoft.Crm.CrmException%26client%3dplatform%26sv%3d9.0.41.860%26de%3dLive%26opsys%3dMicrosoft+Windows+NT+6.2.9200.0%26errorCode%3d-2147218684</HelpLink>
      <Message>The e-mail must have at least one recipient before it can be sent</Message>
      <Timestamp>2019-07-19T09:08:12.5140034Z</Timestamp>
      <ExceptionRetriable>false</ExceptionRetriable>
      <ExceptionSource i:nil="true" />
      <InnerFault>
        <ActivityId>db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</ActivityId>
        <ErrorCode>-2147218684</ErrorCode>
        <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <HelpLink i:nil="true" />
        <Message>The e-mail must have at least one recipient before it can be sent</Message>
        <Timestamp>2019-07-19T09:08:12.5140034Z</Timestamp>
        <ExceptionRetriable>false</ExceptionRetriable>
        <ExceptionSource i:nil="true" />
        <InnerFault i:nil="true" />
        <OriginalException i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <OriginalException i:nil="true" />
      <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep1]
    </TraceText>
    </OrganizationServiceFault>

  • Martin Donnelly Profile Picture
    Martin Donnelly 1,010 on at
    RE: The email must have at least one recipient before it can be sent.

    Again, send to a do not respond/dummy address and all the real recipients BCC.  I don’t know that this was ever otherwise.  It’s probably even an SMTP standard.  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The email must have at least one recipient before it can be sent.

    Hi, I am facing exactly the same issue. The problem appeared since the 20th  of May. I am waiting for an answer from microsoft to know if it comes from a recent update. I checked myself. i didn't find any linked subject.

  • RE: The email must have at least one recipient before it can be sent.

    Please check the release notes for April release, if this is not mentioned then you can raise a support ticket as it was something which was working before

  • SwathiD Profile Picture
    SwathiD 200 on at
    RE: The email must have at least one recipient before it can be sent.

    Hi,

    We need to send emails to all the endorsers of an application. Sometimes endorsers would be from different organisations. So in this case the email ids shouldn't be exposed. Hence we are using BCC.

    Thanks,

    Swathi

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: The email must have at least one recipient before it can be sent.

    Hi Swathi,

    I think it looks like as part of April release or recent update, the To field has been mandatory.

    I tried on CRM 2011, 2015, and 2016 from UI  and allows me to submit the email for delivery and it does not fail on Send Email click when I only set the BCC.

    But when I try the same on latest online from UI, I get the following

    2870.ScreenClip-_5B00_62_5D00_.png

    It kind of makes sense to make To as mandatory field so in my view, they seems to have added this validation recently. 

    Just out of curiosity if possible, could you share the scenario that you only have to set BCC not the To.

  • Suggested answer
    SwathiD Profile Picture
    SwathiD 200 on at
    RE: The email must have at least one recipient before it can be sent.

    Was working without to field. Since 12th April 2019, this had stopped working. For now fixed the issue by adding a "noreply" email to the to field.

  • Martin Donnelly Profile Picture
    Martin Donnelly 1,010 on at
    RE: The email must have at least one recipient before it can be sent.

    Doesn't sound likely.  I would make up a dummy address, real or not.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans