Sending email from Strapi with SMTP, SendGrid or Amazon SES

Strapi sends password reset and notification email through an email provider you configure. This page explains how to choose between Nodemailer SMTP, SendGrid and Amazon SES, and how to test delivery before launch.

On this page

How Strapi sends email and which provider to choose

Strapi hands every outgoing message to one email provider, and the choice of provider decides how reliably password resets and notifications arrive. The Email plugin in Strapi is the common layer: your application code and Strapi's own flows (such as the forgot-password email for end users and admin invitations) call the plugin, and the plugin passes the message to the provider you configure in the plugin settings. Only one provider is active at a time, so the decision is about which delivery path your team will own, monitor and pay for.

The Nodemailer provider is the general option. It connects to any standard SMTP relay, and its providerOptions block adds OAuth2 authentication, connection pooling, DKIM signing and rate limiting on top of the usual host, port and credential settings. Use it when your organization already runs an SMTP relay, a Microsoft 365 or Google Workspace mailbox, or an internal mail gateway that must sign and route the traffic. The SendGrid and Amazon SES options are provider-specific packages that call those services directly through their own APIs, so they suit teams that already hold an account with that vendor and want its sending controls, not a generic relay. Confirm the exact provider package names and supported settings for your Strapi version in the Nodemailer provider documentation and the provider's own docs, because these packages change over time.

Before choosing, confirm four things with the team that owns your domain and mail platform: who controls the sending domain's SPF, DKIM and DMARC records, which credentials Strapi may hold (and whether OAuth2 is required by your mail tenant), the expected volume of password reset and notification messages, and where delivery failures will be seen. A provider that accepts a message is not proof that it reached the inbox, so plan a test sequence that sends to mailboxes at your own domain and at major external providers before go-live. Quotes from a partner should name the provider, the sending domain setup, and who runs the test and monitoring.

What you need before configuring Strapi email

Email delivery from Strapi depends on decisions made outside the CMS: which Strapi version and Node.js runtime you run, which domain sends the mail, and which provider relays it. Settle these first, because DNS records and outbound network rules are often the slowest items to change.

Strapi version and Node.js runtime

Confirm your Strapi major version and that your Node.js release is Active or Maintenance LTS, since Strapi 5 runs only on those. Strapi v4 reached end of life on April 30, 2026, so a password reset flow on v4 has no further upstream fixes. Check the installation requirements before you pin versions, and record the version in your change request so the email configuration is tested against the same release you deploy.

Installation requirements

Sending domain and DNS access

Decide which domain or subdomain sends password resets and notifications, and confirm who can edit its DNS zone. Mail from a shared marketing domain can be filtered differently from transactional mail, so many teams use a dedicated subdomain. Without DNS access, you cannot publish the records receiving servers use to check legitimacy.

SPF, DKIM and DMARC records

Plan these three records before the first test send. SPF lists the servers allowed to send for your domain, DKIM publishes a public key that verifies signed messages, and DMARC states the policy for messages that fail both checks. Your provider supplies the exact values, which change over time, so copy them from the provider console rather than from older guides. Start DMARC in a monitoring mode and review reports before tightening it.

Provider account or SMTP relay credentials

Create the sending account with your SMTP relay, SendGrid or Amazon SES, and store its credentials in your secrets manager instead of in the Strapi configuration file. Check whether the account is in a sandbox or production state, since sandbox accounts often restrict recipients. Ask the provider which sending limits and region apply to your account, and confirm the current authentication method, because providers have changed their options over time.

Outbound SMTP port rules

Confirm that the hosts running Strapi can open outbound connections on the SMTP submission ports your provider uses, commonly 587 with STARTTLS or 465 with implicit TLS. Many cloud networks and data centers block port 25 by default. Ask your network team whether egress is filtered by a proxy or firewall, and test the connection from the same container or host that runs Strapi, not from a laptop.

Provider documentation check

Treat every provider setting in this guide as a starting point. Hostnames, port numbers, authentication options and API key scopes are set by each vendor and change, so confirm them against the vendor's current documentation and the Nodemailer provider page for Strapi before you write production configuration. Record the date you checked, and repeat the check after any provider or Strapi upgrade.

Nodemailer provider docs

Comparing SMTP, SendGrid and Amazon SES for Strapi

Nodemailer SMTP sends mail through a relay or mail server that your organization already runs or contracts from a mail provider. The Strapi Nodemailer provider takes a standard SMTP configuration, and advanced behavior is set through providerOptions. The Nodemailer provider docs list the available options. Your mail team owns the sending account, while the Strapi environment holds the connection details. Before you build, confirm how the relay handles sending limits, retries and logs, because Strapi does not control those.

  • Account ownership: The relay or mail server belongs to your mail operations team or provider, so sending limits, outages and abuse handling follow that team's processes.
  • Stored credentials: Host, port and SMTP login details are stored in configuration, and OAuth2 client details are stored too when you use that method. Keep them in environment variables or your secrets store, not in committed files.
  • Provider versus Strapi: SPF records, DKIM keys and DNS entries are set at the domain and mail server. Strapi's providerOptions can enable OAuth2, DKIM signing, connection pooling and rate limiting, and those settings must match what the relay expects.
  • Operating effort: Recurring work includes rotating credentials, handling OAuth2 token failures, sizing the connection pool and watching relay queues during password reset peaks.

Check who can change the relay credentials, where the relay logs are kept and whether the mail team has agreed to the pooling and rate settings before go-live.

How to configure the Strapi email provider step by step

This sequence takes a Strapi project from no outbound mail to a verified provider setup that sends password resets and notifications with credentials kept out of the codebase. Each step ends with a check so you know the previous layer works before you add the next.

  1. Choose the email provider and install it

    Decide between the Nodemailer SMTP provider, the SendGrid provider or the Amazon SES provider based on the mail service your organization already operates and approves. Install the chosen package in the Strapi project with the package manager your team uses, then confirm the dependency appears in the project manifest and the server starts without errors. Your engineers do this step, and the check is a clean start of the Strapi server with the email plugin loaded.

  2. Configure the plugin file and sender identity

    Create or update the email plugin configuration file in the Strapi config directory so the chosen provider is selected. Set the default sender address and the reply-to address in the settings block, using a domain your organization controls and has authorized for sending. Confirm with the mail owner that these addresses exist and are monitored, because replies to automated mail often land there. The check is that the configuration file loads and the sender values match the approved list.

  3. Move credentials into environment variables

    Place the SMTP host, port, username, password or API key in environment variables, and reference them from the configuration file instead of writing values into source control. Set the same variable names in each environment through your secrets store or deployment platform, and restrict who can read production values. The check is that a search of the repository finds no mail credentials and that the server reads the values from the running environment.

  4. Add the Nodemailer SMTP settings

    For SMTP, set the host, port, secure connection flag and authentication block in the Nodemailer settings, matching what your mail administrator provides for the relay or mail server. Use a connection that encrypts traffic, and confirm the port and TLS mode with the server owner rather than copying values from another project. The check is a successful connection from the Strapi server to the relay, which you can confirm in the startup or debug log.

  5. Enable providerOptions where the mail server supports them

    Add the providerOptions block only for features your mail infrastructure actually offers. OAuth2 needs an identity configuration issued by your mail platform and a token refresh path, DKIM signing needs a private key and selector published in DNS by the domain owner, and connection pooling and rate limiting need values your server tolerates. Ask the mail administrator which options are supported before enabling each one. The check is that the server starts with the options in place and that the mail log shows authenticated sessions with no rejected connections.

  6. Send a test message from the admin panel

    Use the email settings test or a controlled action in the Strapi admin panel to send a message to an internal mailbox you control. Confirm the message arrives in the inbox, not spam, and inspect the headers for the expected sender, the DKIM signature result and the authentication results recorded by the receiving server. The check is a delivered test message with passing authentication, which you record with the date and environment.

  7. Trigger a controlled password reset

    Run a password reset for a test end-user account in a non-production environment, using the Users and Permissions flow that your project exposes. Confirm the reset link points to the correct front-end URL, the message uses the approved template, and the link expires as your configuration intends. Repeat once in production with an internal test account before opening the flow to users. The check is a reset email that arrives, opens the expected page and completes the reset.

  8. Set rate limits and document the configuration

    Apply the rate limit values in providerOptions that your mail provider allows, and set application-side limits on endpoints that trigger mail, such as password resets, so a single client cannot generate large volumes of messages. Record the chosen provider, environment variable names, DNS records, owners and the test results in your operations runbook. The check is a documented configuration that a second engineer can follow and a reset request that the limit correctly throttles in testing.

When DKIM, OAuth2 and connection pooling matter

The Nodemailer provider in Strapi accepts providerOptions on top of a standard SMTP configuration, and three of them answer decisions that a plain username and password cannot. The first is authentication. If your mail relay requires OAuth2 rather than a static password, the provider can carry that configuration, so the question to settle early is what your mail server accepts today and whether your identity team can issue and rotate the credentials the flow needs. If the relay still accepts a static password, OAuth2 is not needed, and you should not add it just because the option exists.

The second decision is who holds the signing keys. DKIM signing is supported through the same provider options, which means the Strapi application can sign outgoing messages with a key you supply. Whether that is the right place to sign depends on your domain setup: if your provider or relay already signs for your domain, signing again from Strapi can produce duplicate or conflicting signatures. Confirm with your mail administrator which system owns the DNS records and private keys, and document that owner before go-live. Connection pooling and rate limiting answer a different question, which is how much load Strapi may place on a shared relay. Pooling reuses connections instead of opening one per message, and rate limiting caps the send rate. Both protect a relay that other applications also depend on, so set the limits with the relay operator, not by guesswork.

Check the exact option names, value formats and any provider-specific behavior against the Nodemailer provider documentation for your Strapi version before you write them into configuration. Then test each option in a staging environment with a real relay, confirm headers and signatures on received messages, and watch the relay's logs during a burst of password resets. Strapi's default settings may not match your relay's limits, so treat these options as decisions to record, not defaults to accept.

How a password reset email travels from Strapi to the inbox

The flow starts when a user requests a reset or an editor triggers a notification in Strapi. The email plugin hands the message to a provider: the Nodemailer SMTP provider, or a SendGrid or Amazon SES provider. The provider signs and relays the message, and the recipient's mail server returns the delivery result. Trust boundaries sit between Strapi and the secrets store, between Strapi and the provider, and between the provider and external mail servers, so check where each credential lives and what each hop can see.

Password reset email path from Strapi through a provider to external mail servers, with trust boundaries marked.

Mapping sender identity, credentials and message types

This table maps each Strapi email setting to the part of the sending system it depends on, so the team can see which values come from its own mail environment. Read each row as a question to answer before go-live: who owns the value, where it is set, and what proves it works. The main takeaway is that most delivery failures trace to a sender address, DNS record or credential that was never confirmed outside Strapi.

Strapi setting or messageWhat it must matchWho confirms itWhat to check before go-live
Sender address (defaultFrom)A mailbox or address on the verified sending domainMail or domain administratorDomain is verified at the sending provider and the address is allowed to send
Reply-to address (defaultReplyTo)A monitored mailbox that the business ownsSupport or operations ownerReplies reach a person or queue who will act on them
SMTP host and port (Nodemailer)The relay endpoint and port the provider publishes for your accountMail platform teamConnection succeeds from the Strapi host and TLS settings match the provider
OAuth2 client details (providerOptions)The client ID, secret, refresh token and mailbox that the identity provider issuedIdentity or Microsoft 365 / Google Workspace administratorToken refresh works, scopes are limited to sending, and secrets sit in environment variables
DKIM selector and DNS recordsThe selector and public key published under the sending domainDNS administratorRecords resolve publicly and signed test messages pass DKIM checks
Password reset messageTemplate text, link base URL and expiry wording agreed with the product ownerProduct owner for end-user accountsLink points to the correct public URL and the token expiry matches policy
Editorial notificationsTriggering lifecycle or workflow events and recipient groupsContent operations leadOnly the intended roles receive messages and no personal data is added to the body
Security or system alertsRecipient list and sender owned by the operations or security teamSecurity or platform teamAlert recipients are current, and the sender is separate from marketing mail

Securing credentials, sender domains and email content

Email from Strapi touches SMTP passwords, OAuth2 secrets, provider API keys, your sending domain and the text of every notification. Each of these can be abused to send mail as your organization or leak data, so the controls below should be decided before the first password reset goes out.

Keep provider secrets out of the admin panel

SMTP passwords, OAuth2 client secrets and SendGrid or SES API keys belong in environment variables or your secrets manager, referenced from config/plugins.js rather than typed into code or committed to Git. Check that the repository history contains no past credentials and that CI injects secrets at deploy time. Rotate any key that has ever appeared in a log, ticket or chat message. Ask the team to confirm which environment each secret lives in and who can read it.

Nodemailer provider docs

Scope provider accounts to sending only

Create a dedicated sending identity for Strapi rather than reusing a personal mailbox or an account with administrative rights. For SES, a credential that can only send from verified identities limits the damage if it leaks. For SendGrid, use a restricted API key with mail send permission only. Record who owns each account, and confirm the provider's current permission model before you grant access, because scopes differ between providers and change over time.

Authenticate the sending domain

SPF, DKIM and DMARC tell receiving mail servers which hosts and keys may send for your domain and what to do with failures. Without them, password reset emails are more likely to land in spam or be spoofed in your name. Publish DKIM keys from the provider you use, or enable DKIM signing in the Nodemailer providerOptions if your SMTP relay supports it. Start DMARC in monitoring mode, review reports, then tighten the policy. Confirm the DNS records with your mail team before go-live.

Limit who can change email settings

Email configuration controls where reset links and invitations are sent, so a changed sender or relay is an account takeover path. Restrict access to the admin roles that manage plugin settings, and keep super admin accounts few. If you use admin SSO, enforce multi-factor authentication at the identity provider for those roles. Ask whether audit logs are available on your plan, since they are an Enterprise feature in Strapi's self-hosted plans, and plan an alternative record of configuration changes if they are not.

Keep sensitive data out of notification bodies

Email is stored by providers and forwarded through mail infrastructure, so treat its contents as leaving your control. Do not include full personal records, account balances, health details, tokens or internal document links in notification text. Send a short message with a link that requires login, and keep reset tokens short-lived and single-use. Review each template with the data owner, and confirm with your provider how long message content and logs are retained.

Audit templates and recipient lists

Notifications triggered by content changes can reach more recipients than intended when a role, field or relation changes. Review which lifecycle events send mail, who receives them, and whether a bulk action could mass-mail users. Restrict test recipients in non-production environments so staging never delivers to real customers. Keep a short list of templates with their owners, so a change to a template is reviewed like any other change to user-facing text.

Common Strapi email failures and how to fix them

This table lists the email failures teams most often hit when wiring Strapi to SMTP, SendGrid or Amazon SES, with the likely cause and the fix for each. Use it as a triage checklist: start with the symptom you see, confirm the cause in your own environment, then apply the fix and retest a password reset from the same environment where the failure occurred.

FailureLikely causeFix
Connection times out or fails at handshakeWrong SMTP port or TLS mode, such as implicit TLS configured on a STARTTLS portConfirm the port and encryption mode with your provider, then match the secure setting in the Nodemailer SMTP configuration and retest
OAuth2 send rejected with authentication errorExpired or revoked access token, wrong client credentials, or the mailbox does not grant the requested scopeCheck the OAuth2 client ID, secret and refresh token in providerOptions, confirm the scope with your mail provider, and regenerate the refresh token if needed
Emails fail or are silently dropped in production onlyEnvironment variables missing or misnamed in the production container, secret store or CI pipelineCompare the variable list between staging and production, and log the resolved provider name and sender at startup without logging secret values
Recipients see DKIM failure or emails land in spamDKIM record missing, unpublished, or signed with a selector that does not match the DNS recordPublish the DKIM public key the provider gives you under the exact selector name, wait for DNS propagation, and verify the signature on a test message
Provider rejects the sender addressThe From address or domain is not verified with SendGrid or Amazon SES, or SES is still in sandbox modeVerify the sender identity or domain in the provider console, use only verified addresses in the from setting, and confirm the account has left SES sandbox if you need to reach unverified recipients
Bulk notifications stop partway throughProvider rate limits or Nodemailer sending faster than the connection or account allowsEnable connection pooling and rate limiting through providerOptions, queue notifications instead of sending in request handlers, and check the provider's documented limits for your plan
Reset links work in testing but fail for some usersPublic URL or frontend base URL in the email template points at an internal address or the wrong environmentSet the public-facing URL per environment, and render a sample reset email in each environment to check the link host before go-live
Email sends succeed but delivery is unconfirmedNo bounce, complaint or delivery event tracking, so failures are only found by usersAsk the provider which delivery events it exposes, route bounces to an owner, and test with seed addresses across major mailbox providers

How to test email delivery before go-live

Treat email delivery as a test item with its own pass criteria before go-live, not as a side effect of the password reset form working. Build a test plan that sends the real reset and notification messages from the Strapi environment that will run in production, using the same sender address, provider credentials and DNS records. Send each message type to seed mailboxes at the major providers your users rely on, such as corporate Microsoft 365 or Google Workspace tenants, a consumer mailbox and at least one外部 address your organization does not control. Confirm the message arrives in the inbox, the link works, and the sender name and subject render correctly on desktop and mobile clients.

For each delivered message, open the raw headers and check the DKIM and SPF results. Both should show a pass for the domain in the From address, and the DKIM signing domain should match the domain your provider is configured to sign for. If you use the Nodemailer provider's DKIM signing through providerOptions, confirm the selector and key in your DNS match what the provider expects. Next, check the bounce and complaint handling in the provider console: trigger a hard bounce with an invalid address and a soft bounce if your provider allows it, then confirm your application logs the failure and does not retry indefinitely. Confirm who receives complaint notices and how suppressed addresses are handled.

Run a load test on notification bursts, such as a bulk approval workflow that sends many emails at once, but keep the volume within the sending limits your provider has confirmed for your account. Confirm the connection pool size and the rate limiting settings you intend to use, and observe queue depth and error rates. Repeat the full test set after any change to the provider, the sending domain, DNS records, DKIM keys or the Strapi email configuration, because each change can break alignment without any visible error in the admin panel. Confirm in your own environment which mailboxes and provider accounts your team can access for testing, who owns the provider console, and what evidence your security or compliance reviewers will need to see.

Questions buyers ask about Strapi email setup

How much effort does a Strapi Nodemailer, SendGrid or SES setup take?

The configuration itself is usually the smallest part. Effort is driven by how many sending paths the project needs (password resets, editorial notifications, form submissions), whether the team already has a sending account with a provider, and how much of the mail flow needs custom templates or routing. A basic SMTP setup in a single environment is a short task. Adding OAuth2 for a mailbox, DKIM signing, connection pooling, rate limiting and separate settings for staging and production adds design and verification work. Ask any partner to split the estimate into configuration, DNS and provider setup, template work and testing so you can see which parts your team already covers.

Can our team configure Strapi email without outside help?

Yes, if you have a developer who is comfortable editing the Strapi configuration and an owner for your mail domain. Strapi's Nodemailer provider is set through standard SMTP settings plus providerOptions for features such as OAuth2, pooling and DKIM. The harder part is usually not the code but the decisions around it: which provider sends mail, which sender address users see, and how bounces and complaints are handled. Outside help tends to pay off when the team lacks mail deliverability experience or needs the setup documented for an audit. A partner works from a written scope, so ask for the deliverables in writing before work starts.

What do we need from our DNS, mail and security owners?

Email setup depends on people outside the development team. Your DNS owner typically publishes the sender records that receiving servers check, including SPF and the DKIM public key when DKIM signing is used, and may need to add a DMARC policy. Your mail or messaging owner confirms which mailbox or sending domain is allowed and whether OAuth2 consent is permitted. Your security owner reviews where SMTP credentials and client secrets are stored, who can rotate them, and whether a dedicated sending identity is required. Ask for these approvals early, because DNS changes often take time to propagate and security reviews can add weeks to the schedule.

How long does testing Strapi email delivery take, and what sets it?

Testing duration depends on how many email types you send, how many environments need verification, and how long your DNS and provider changes take to take effect. A minimal check sends a password reset and a notification from each environment and confirms they arrive, are not marked as spam and pass SPF and DKIM checks. Longer testing covers bounce handling, rate limit behavior under load, pooled connection recovery after a dropped connection and failover to a second provider if you use one. Ask your partner to name the test cases in the written scope and to state which tests depend on your DNS owner or provider account being ready.

Do we need a Strapi Enterprise plan to send email?

Not for the email provider itself. Strapi's Nodemailer provider and its SendGrid and Amazon SES providers are configured in the project, and the Community Edition is licensed under the MIT Expat license. Plan choice affects other features you may want at the same time. According to Strapi's self-hosted pricing page, SSO is an add-on for Growth and included in Enterprise, while audit logs and review workflows are Enterprise features. If your compliance team expects an audit trail of administrative actions, that is a separate decision from how mail leaves the system. Confirm the plan requirements against the current pricing page before you commit.

What should we ask for in a written quote for Strapi email work?

Ask for a quote that lists each deliverable, the environments covered and the provider chosen. Good quotes state which email types are in scope, whether OAuth2, DKIM and pooling are included or optional, and how DNS changes will be handed over and verified. Ask who owns the provider account and the API or SMTP credentials at handover, how secrets are stored, and what documentation you receive. Also ask which items are one-time work, such as configuration and testing, and which recur, such as provider fees, sending volume charges and any retainer for later changes. Request the assumptions behind the schedule so you can see which dependencies sit with your team.

Which email provider should we choose for Strapi?

The right choice depends on your existing mail infrastructure, your sending volume and the controls your organization needs. SMTP through your current mail server suits teams that already run managed mail with OAuth2 support. SendGrid and Amazon SES offer provider-specific settings and are often chosen when the team wants a dedicated sending service. Compare them on how they fit your DNS and identity model, where credentials are held, the data location of the service and how your audit team will review the sending path. Confirm each provider's current features and regional options with the provider directly, since these change.

How DeployOpen scopes and delivers Strapi email integrations

DeployOpen plans and builds self-hosted open-source platforms inside your own infrastructure, so email settings for Strapi password resets and notifications are designed around your domain, your provider account and your security review. Engagements are fixed-scope, with the provider choice, configuration and test plan agreed in writing before work starts.

How we scope

  • Confirm which Strapi emails must send, such as password resets, invitations and editorial notifications, and who receives them.
  • Decide between Nodemailer SMTP, a SendGrid provider or an Amazon SES provider based on your existing mail accounts and controls.
  • Record domain authentication, sender addresses, rate limits and bounce handling as written scope items before the build starts.

How we build

  • Configure the email provider in the Strapi project, including credentials stored outside source control and OAuth2 or pooling options where your mail server needs them.
  • Set up DKIM signing and sender domain records with your DNS team, and document each record's purpose.
  • Test password reset, invitation and notification flows in a non-production environment before any live sending is enabled.

How we hand over

  • Deliver configuration documentation covering environment variables, provider settings and the reason for each option chosen.
  • Provide a delivery test record showing messages sent, received and checked for authentication results in your target inboxes.
  • Walk your operations team through credential rotation, provider limits and how to recognize a failed send in Strapi logs.

How we support

  • Ongoing support, Strapi upgrades and continuous testing are available as retainers, which can cover changes to the email provider.
  • Re-test delivery after Strapi upgrades or provider changes, since email settings can change with plugin and provider versions.
  • Ask for a written quote that lists scope, deliverables, retest rounds and who owns provider accounts and DNS changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.