MailerSend Unauthenticated

Summarize:ChatGPTPerplexity

Note: This guide applies to the MailerSend mailer in WP Mail SMTP.

What this Error Means

The API token in WP Mail SMTP is missing, invalid, or has been deleted from the MailerSend account. The request can’t be authenticated.

Common Causes

  • API token deleted or regenerated in MailerSend without updating WP Mail SMTP
  • Typo or truncation when copying the token
  • API token field left empty in WP Mail SMTP
  • Token has expired (MailerSend tokens have a configurable expiration date)
  • Token belongs to a different MailerSend account than the one with the verified sending domain

Resolving the ‘Unauthenticated’ error

Here is the complete step-by-step guide to resolving the error.

Step 1: Generate a New API Token in MailerSend

Log in to your MailerSend account area. In the left sidebar, expand Developer tools and click API tokens.

API tokens page in MailerSend Developer tools

Click Create new token. Enter a name for the token (e.g. “WP Mail SMTP”). Leave the Domain set to All (or restrict it to a specific domain if needed). Optionally set an Expiration date. If you don’t set one, the token expires in 24 hours.

Token creation form showing name, domain, and expiration settings

Under Permissions, leave Sending access selected (this is the default). Click Generate token.

Generate token button in MailerSend

Copy the token immediately. It is only shown once and cannot be retrieved later.

Copy the API token — it is only shown once

Step 2: Paste the New Token in WP Mail SMTP

Log in to the WordPress admin area. Then go to WP Mail SMTP » Settings and click the General tab.

WP Mail SMTP setting page

Scroll to the Primary Connection section and select MailerSend as the Mailer.

Select Mailersend mailer

Clear the API Key field and paste the token you copied.

Paste API key

Finally, scroll down and click Save Settings.

Save settings

Step 3: Send a Test Email

To send a test email, go to WP Mail SMTP » Tools. Click the Email Test tab.

Email Test tab in WP Mail SMTP Tools

Enter a recipient email in the Send To field. Leave the HTML toggle ON.

Once done, click Send Email.

Send Email button in the Email Test tab

Look for the success message, then check your inbox to confirm the email arrived.

Notes

  • MailerSend API tokens are shown in full only once at creation. If you lose it, you must generate a new one.
  • Token expiration is set at creation time (minimum 24 hours). If your token expired, generate a new one following Step 1 above.
  • If the error persists after replacing the token, confirm you are logged into the same MailerSend account that owns the verified sending domain configured in WP Mail SMTP.

That’s It! You now know how to fix the ‘Unauthenticated’ error in MailerSend and get your emails sending again through WP Mail SMTP.

Try our Free WP Mail SMTP plugin

Use your favorite SMTP provider to reliably send your WordPress emails.