Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
895 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to send an email with power shell and azure commnction,
when I send a post with that json-
$jsonString = @"
{
"senderAddress": "DoNotReply@2a27eb63-5cbd-499a-8924-c9612d7ebb5f.azurecomm.net",
"content": {
"subject": "An exciting offer especially for you!",
"plainText": "This exciting offer was created especially for you, our most loyal customer.",
},
"recipients": {
"to": [
{
"address": "ron.cohen@sela.co.il",
"displayName": "Ron Cohen"
}
]
}
}
"@
I am getting that-
Failed to send email: {"error":{"code":"BadRequest","message":"Request body validation error. Invalid Json payload.","target":null,"details":null,"innererror":null}}
Tnx!