Integration guide · Strapi

Strapi SMTP: the nodemailer provider in one file

Strapi sign-up confirmations and password resets go through SMTP Senpai with the nodemailer email provider.

  • 14-day free trial
  • Servers and data in the EU
  • A log of every delivery
4.7/5 · 83 reviewsGoogleCapterraTrustpilot
config/plugins.js
module.exports = ({ env }) => ({
  email: {
    config: {
      provider: 'nodemailer',
      providerOptions: {
        host: env('SMTP_HOST', 'relay.mailsenpai.com'),
        port: env.int('SMTP_PORT', 2525),
        secure: false, // STARTTLS
        auth: { user: env('SMTP_USERNAME'), pass: env('SMTP_PASSWORD') },
      },
      settings: {
        defaultFrom: '[email protected]',
        defaultReplyTo: '[email protected]',
      },
    },
  },
});
the 4 details

Four details, and your emails go out

They are the same for every program: you also find them, already filled in, in your customer area.

Serverrelay.mailsenpai.com
Port2525
SecuritySTARTTLS
Username and passwordin the customer area, SMTP Senpai page

The sender must be on a domain verified in your area: otherwise the server refuses to send. For SPF, DKIM and DMARC records, use the free email DNS checker.

how to

Three steps

1

Install the provider

npm install @strapi/provider-email-nodemailer

2

Configure the plugin

Paste the file and put username and password in .env (SMTP_USERNAME, SMTP_PASSWORD).

3

Test it

From the Strapi admin: Settings › Email › «Send test email».

Frequently asked questions

Does it work for Strapi 4 and 5?

Yes, the nodemailer provider is configured the same way.

Do user confirmation emails go through it?

Yes: the Users & Permissions plugin uses Strapi’s email service.

Which sender do I use?

An address on your domain verified in SMTP Senpai, in defaultFrom.

Try SMTP Senpai with your own software

A 14-day trial: connect your software, send your real emails and check the log line by line. Then decide.

14 days freeFree trial