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
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]',
},
},
},
});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.
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.
Three steps
Install the provider
npm install @strapi/provider-email-nodemailer
Configure the plugin
Paste the file and put username and password in .env (SMTP_USERNAME, SMTP_PASSWORD).
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-senpaiFrequently 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.
More integration guides
WordPress
SMTP for WordPress
OpenLaravel
SMTP for Laravel
OpenNode.js
SMTP for Node.js
OpenDjango
SMTP for Django
Openn8n
SMTP for n8n
OpenPrestaShop
SMTP for PrestaShop
OpenJoomla
SMTP for Joomla
OpenDrupal
SMTP for Drupal
OpenOpenCart
SMTP for OpenCart
OpenMagento 2
SMTP for Magento 2
OpenCraft CMS
SMTP for Craft CMS
OpenStatamic
SMTP for Statamic
OpenTYPO3
SMTP for TYPO3
OpenOctober CMS
SMTP for October CMS
OpenTry 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.