Strapi "error: Couldn't send test email: Missing credentials for "PLAIN"
09:08 08 Jan 2025

I'm trying to configure the email plugin in Strapi but this error is showing up everytime I try to test it. If I create a custom transport there is no problem but using Strapis plugin there is no way.

I'm using nodemailer as the provider.

My config/plugins.ts is the following:

module.exports = ({ env }) => ({
  email: {
    config: {
      provider: 'strapi-provider-email-nodemailer',
      providerOptions: {
        host: env('MAILRELAY_SMTP_HOST'),
        port: env.int('MAILRELAY_SMTP_PORT'),
        secure: env.bool('MAILRELAY_SMTP_SECURE'),
        auth: {
          user: env('MAILRELAY_SMTP_USER'),
          pass: env('MAILRELAY_SMTP_PASS'),
        },
      },
      settings: {
        defaultFrom: env('SME_MAIL'),
        defaultReplayTo: env('SME_MAIL'),
      },
    },
  },
});

I've tried changin the auth to false, to use password instead of pass but the result is always the same.

javascript typescript email strapi nodemailer