Integration Module 2.0 for Medusa is outRead the announcement
Smtp senpai logo

Smtp senpai

Medusa v2 notification module provider for SMTP Senpai by MailSenpai: send order and customer emails on the email channel through the EU SMTP relay API.

npm install medusa-plugin-smtp-senpai
Built by
Regions
Worldwide
Service
Version
1.0.1
Last updated
4 weeks ago
Monthly downloads
Loading downloads

medusa-plugin-smtp-senpai

Medusa v2 Notification Module Provider for SMTP Senpai, the EU SMTP relay and email API by MailSenpai. It handles the channel: order confirmations, password resets, invites and any notification you create with the Notification Module go out through the SMTP Senpai REST API.

Requires Medusa 2.x and Node.js 20+.

Prerequisites

  • An SMTP Senpai account with a verified sending domain
  • An API key () from the MailSenpai customer area, SMTP Senpai page

Install

Configure

Register the provider in the Notification Module, in :

Medusa allows one provider per channel: remove any other provider registered for .

optionrequireddescription
yes
yesAPI key (default: )
yesdefault sender, or
nosender name when has none
nodefault Reply-To
notemplates by name, used when a notification has no
, , noclient settings (retries only on 5xx and network errors)

Send a notification

With ready-made content (for example rendered with React Email in your subscriber):

Templates in the provider options

When a notification has no , the provider looks up . A template is either strings with placeholders filled from (values are HTML-escaped in ), or a function:

Result and errors

  • On success the notification gets the SMTP Senpai Message-ID as .
  • API errors (for example an unverified sender domain) are thrown as with the API message, so the notification is marked as failed.
  • A recipient on the SMTP Senpai suppression list is not emailed and the notification fails with the reason.

License

MIT © MailSenpai

First received message and troubleshooting

Use a demo order on staging and trigger its notification subscriber. Confirm that the email channel selects this provider and that its external_id is recorded. Installing the provider does not create an order subscriber or a template for your store.

A relay/API acceptance result is distinct from inbox placement. Check the actual received message and its authentication headers. Keep API keys and customer data out of public screenshots and logs.

If authentication fails, check the key and account state. For a sender-domain rejection, verify the sender domain. For quota/rate errors, respect the response and the plan limit rather than retrying blindly. For a timeout, check outbound HTTPS access. Use a stable idempotency key for retries where the integration exposes it.

Package catalogue · API errors and delivery events · Integration guides

Service logs are retained for 7 days on the free plan and 90 days on paid plans. Local application logs may have different retention.