Error in Azure Communication Services: "Error sending email: Email body validation error. See property 'senderAddress'"

Problem statement

Azure Communication Services was set up to use the passwordless login. The setup was complete, and test emails can be sent from Auth0, but when trying the actual login, the following error message is shown:

"error": "Error sending email: Email body validation error. See property 'senderAddress'"

Symptoms

An entry in tenant logs is created:

{ "email_type": "verification_code", "to": "[xxx.yyy@example.com](mailto:xxx.yyy@example.com)", "error": "Error sending email: Email body validation error. See property 'senderAddress'" }

Troubleshooting

Tenant configuration:
Check the content in the field From In the Dashboard, under Authentication โ†’ Passwordless โ†’ Email .

Usually, this field presents a default value: {{ application.name }} <root@auth0.com>

The symbols โ€œ<โ€ and โ€œ>โ€ around the email as well as the {{application.name}} literal should be removed, leaving only the email.

Cause

Tenant configuration:
In the Dashboard, navigate to Authentication > Passwordless > Email and review the field From . By default, this field presents a value of {{application.name}} <root@auth0.com>. The symbols โ€œ<โ€ and โ€œ>โ€ around the email as well as the {{application.name}} literal should be removed, leaving only the email. See the screenshot below:

Solution

To resolve the issue, update the From field leaving only the email and removing the symbols โ€œ<โ€ and โ€œ>โ€ as well as the {{application.name}} literal.

1 Like