Sending Email Fails with Error "Authenticated user is not authorized to send mail"

Last Updated: Aug 2,2024

Overview

This article explains the cause of the following error that occurs when an attempt to send an email is made:

Authenticated user is not authorized to send mail

The error seen in the logs looks like this:

{
   ...
  "type": "fn",
  ...
  "details": {
   ...
    "error": "Authenticated user is not authorized to send mail"
  },
  ...
}

Applies To

  • SendGrid
  • Email

Cause

The error Authenticated user is not authorized to send mail when using Auth0 usually means that the email service provider (like SendGrid, Amazon SES, etc.) is not allowing the authenticated user or the application to send emails on their behalf.

Solution

Resolve the error by updating the permissions for the API key generated in your External SMTP Provider / Custom Email Provider.