web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The message can't be sent because at least one recipient isn't valid.

(0) ShareShare
ReportReport
Posted on by 1,562

Hi All,

I am trying to add recipient with email id,its adding but 
when try to send email its showing 
'The message can't be sent because at least one recipient isn't valid.'Below is my JavaScript code please make me correct if wrong in code.
function PrepareActivityPartyto(partyId, partyEntityName) {
var activityParty = new Sdk.Entity("activityparty");
activityParty.addAttribute(new Sdk.String("addressused", "test43@test.com"));
activityParty.addAttribute(new Sdk.Lookup("partyid", new Sdk.EntityReference(partyEntityName, partyId)));
var activityParties = new Sdk.EntityCollection();
activityParties.addEntity(activityParty);
return activityParties;
}

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Harish Das Profile Picture
    on at
    RE: The message can't be sent because at least one recipient isn't valid.

    Hi

    1. can you disable your java script and check same scenario to confirm this issue is because of java script or not?

    2. second thing is that, this message will come if sender (From field) don't have valid Email or email ID is not approved for processing. Please check the sender email ID also.

    3. Make sure selected email ID in to field dint enable Do not send Email flag if it is customer or account.

    Please verify this Ans if it help to resolve your query.

    Regards

    Harish

  • Suggested answer
    PS Profile Picture
    23,577 on at
    RE: The message can't be sent because at least one recipient isn't valid.

    Email address you are using must be on the email field of your entity on hich you are sending email.

    And from user must also have a primary email address

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans