Tutorial

Strapi Email Setup with SMTP (Nodemailer Provider)

Install the Nodemailer provider, add one config block and test it from the admin panel.

By the Sendcorex team·Updated Nov 18, 2026·5 min read

1. Install the provider

npm install @strapi/provider-email-nodemailer

2. Configure config/plugins.js

module.exports = ({ env }) => ({
  email: {
    config: {
      provider: 'nodemailer',
      providerOptions: {
        host: 'smtp.sendcorex.com',
        port: 587,
        auth: {
          user: env('SENDCOREX_API_KEY'),
          pass: env('SENDCOREX_API_KEY'),
        },
      },
      settings: {
        defaultFrom: 'Acme <hello@yourdomain.com>',
        defaultReplyTo: 'support@yourdomain.com',
      },
    },
  },
});

3. Test from the admin

Restart Strapi, open Settings → Email → Configuration and send a test email. Users & Permissions emails (confirmation, password reset) now go through your SMTP relay too.

4. Send from your own code

await strapi.plugin('email').service('email').send({
  to: 'user@example.com',
  subject: 'Your order is confirmed',
  text: 'Thanks for your order!',
  html: '<html><body><p>Thanks for your order!</p></body></html>',
});

5. Authenticate your domain

The defaultFrom address must be on a domain with SPF, DKIM and DMARC published. Generate the records with the SPF generator and DMARC generator.

Send from Strapi in minutes

Create a free account, verify your domain and paste in the config above.

No credit card required