Strapi Integration
Configure the Strapi headless CMS to send emails via Reloop SMTP using Nodemailer.
Strapi is a leading open-source headless CMS. Out of the box, Strapi provides a mock email sender. To send real transactional emails (like user password resets, email address confirmations, or custom workflow triggers), you must configure an email provider.
Reloop SMTP integrates seamlessly with Strapi using the standard @strapi/provider-email-nodemailer package.
Prerequisites
Before starting, make sure you have:
- A verified sending domain in your Reloop Dashboard.
- A Reloop API Key (starts with
rl_).
Step 1: Install Nodemailer Provider
Run the following command in your Strapi project root folder to install the official Nodemailer email provider:
npm install @strapi/provider-email-nodemailer
Step 2: Configure the Plugin
Create or edit your Strapi plugin configuration file.
- File path:
config/plugins.js(orconfig/plugins.tsfor TypeScript projects)
Add the email provider configuration block:
module.exports = ({ env }) => ({
// ... existing plugins
email: {
config: {
provider: 'nodemailer',
providerOptions: {
host: 'smtp.reloop.dev',
port: 587,
auth: {
user: env('RELOOP_API_KEY'),
pass: env('RELOOP_API_KEY'),
},
},
settings: {
defaultFrom: env('RELOOP_FROM_EMAIL', 'hello@yourdomain.com'),
defaultReplyTo: env('RELOOP_REPLY_TO_EMAIL', 'hello@yourdomain.com'),
},
},
},
});
Step 3: Set Environment Variables
Add the required environment variables to your .env file:
RELOOP_API_KEY="your-reloop-api-key"
RELOOP_FROM_EMAIL="sender@yourdomain.com"
RELOOP_REPLY_TO_EMAIL="sender@yourdomain.com"
[!IMPORTANT] Make sure
RELOOP_FROM_EMAILis a verified email address from your Reloop sending domain.
Step 4: Verify the Integration
- Restart your Strapi application (
npm run developornpm run build && npm run start). - Log in to the Strapi Admin Panel.
- Trigger a password reset email or go to Settings → Email Settings to send a test message.
- Verify receipt of the email and check delivery metrics in your Reloop Dashboard.
Was this page helpful?