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.

  • Free plan, no card and no expiry
  • Servers and data in the EU
  • A log of every delivery
4.7/5 · 95 reviewsGoogleGoogleCapterraCapterraTrustpilotTrustpilotG2G2
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 or 587
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. After the first send, the free email spam test gives it a score from 0 to 10.

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.

Prefer the API to SMTP? There is a dedicated provider for Strapi 4 and 5: install it and, in config/plugins.js, set provider: 'strapi-provider-email-smtp-senpai' with your API key in providerOptions.apiKey.

npm install strapi-provider-email-smtp-senpai

npmGitLabAll integrations

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

Start free: connect your software, send your real emails and check the log line by line. No card and no expiry.

Free, no card and no expiryFree plan