Issue with strapi-provider-email-smtp on Strapi 5.0.0

Hi everyone! I’m encountering an issue when trying to send emails via SMTP on Strapi 5.0.0. Here are the details of my configuration and the errors I’m seeing:

Strapi Version: 5.0.0
Email Provider: strapi-provider-email-smtp@1.0.3

Error:

Error: Could not load email provider "smtp".

SMTP Configuration (in config/plugins.ts):

export default ({ env }) => ({
  email: {
    config: {
      provider: 'smtp',
      providerOptions: {
        host: env('SMTP_HOST', 'sandbox.smtp.mailtrap.io'),
        port: env.int('SMTP_PORT', 587),
        secure: env.bool('SMTP_SECURE', false),
        auth: {
          user: env('SMTP_USERNAME'),
          pass: env('SMTP_PASSWORD'),
        },
      },
      settings: {
        defaultFrom: env('EMAIL_DEFAULT_FROM', 'noreply@clutchy.com'),
        defaultReplyTo: env('EMAIL_DEFAULT_REPLY_TO', 'noreply@clutchy.com'),
      },
    },
  },
});

I’ve tried the following without success:

  • Uninstalled and reinstalled the SMTP provider.
  • Cleared Strapi cache and restarted the server.
  • Tested the email system using the sendmail provider, which works fine.

However, I keep getting the error with the SMTP provider.
Any suggestions on how to resolve this or is there something specific for Strapi 5.0.0 that I should be aware of?

Thanks in advance for the help!

This topic has been created from a Discord post (1288521463707734107) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I mentioned it in <#963236405641887744> for others reading this but I advise using our nodemailer provider as it also uses smtp