npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tsc_tech/medusa-plugin-smtp

v0.0.3

Published

A starter for Medusa plugins.

Downloads

627

Readme

Compatibility

This starter is compatible with versions >= 2.5.0 of @medusajs/medusa.

Notification-smtp

Support the Notification-smtp Provider - Elevate Our Medusa Community!

Dear Developers and E-commerce Enthusiasts,

Are you ready to enhance email communication for your MedusaJS store? We have an exciting opportunity that will streamline email delivery for the Medusa platform! Introducing the SMTP Provider, a community-driven project that integrates the power of SMTP email services into the MedusaJS commerce stack, ensuring reliable and efficient email communication.

Stay ahead in e-commerce with seamless email solutions! 🚀

What's in it for You:

🚀 Enhance Email Communication: With the SMTP Provider, you can unlock the full potential of SMTP services, ensuring reliable and secure email delivery for your customers.

🌐 Seamless Global Outreach: Connect with customers worldwide with hassle-free email communication, supporting various email providers and configurations tailored to your needs.

🎉 Empower Your Medusa Store: By supporting this provider, you contribute to the Medusa community, fostering innovation and improving email infrastructure across the platform.

Effortless Installation

No complexity, no hassle! Set up the SMTP Provider quickly with npm:

The SMTP Provider integrates SMTP email services into the MedusaJS commerce stack, ensuring seamless email functionality for transactional and marketing emails. 🚀

Installation

Use the package manager npm to install Notification-smtp.

npm install @tsc_tech/medusa-plugin-smtp
yarn add @tsc_tech/medusa-plugin-smtp

Additionally, install the smtp package:

npm install nodemailer
yarn add nodemailer

Configuration

Step 1. Choose an SMTP Provider

You'll need an SMTP provider to send emails. Some popular options include:

Gmail (requires an App Password if using 2FA)

Step 2. Get SMTP Credentials

Once you've signed up for an SMTP provider, retrieve your SMTP credentials (hostname, port, username, password). Example (for Gmail):

SMTP_HOST: smtp.gmail.com SMTP_PORT: 587 (for TLS) or 465 (for SSL) SMTP_AUTH_USER: [email protected] SMTP_AUTH_PASS: your-app-password

For Gmail, enable Less Secure Apps or generate an App Password if using 2FA.

Step 3. Set Up Environment Variables In your .env file, define the following variables:

SMTP_HOST=smtp.gmail.com
SMTP_PORT=465
SMTP_SECURE=true
SMTP_NAME=your-app-name
[email protected]
SMTP_AUTH_PASS=your-app-password
[email protected]
[email protected]

Step 3: Update Medusa Configuration Modify your medusa-config.ts to include the smtp provider:

module.exports = defineConfig({
modules: [
  ...
    {
      resolve: "@medusajs/medusa/notification",
      options: {
        providers: [
          // # SMTP Notification
          {
            resolve: "@tsc_tech/medusa-plugin-smtp/providers/smtp",
            id: "notification-smtp",
            options: {
              channels: ["email"],
              fromEmail: process.env.SMTP_FROM,
              transport: {
                host: process.env.SMTP_HOST || "smtp.gmail.com",
                port: process.env.SMTP_PORT || 465,
                secure: process.env.SMTP_SECURE || false,
                auth: {
                  user: process.env.SMTP_AUTH_USER,
                  pass: process.env.SMTP_AUTH_PASS,
                },
              },
            },
          },
        ],
      },
    },
  ...]
})

Contributing

Contributions are welcome! For significant changes, please open an issue first to discuss your proposed modifications.

Kindly ensure that tests are updated as needed.

License

MIT

Disclaimer

The code has been tested in a limited number of scenarios, so unforeseen bugs may arise. Please report any issues you encounter or submit a pull request if you'd like to contribute fixes.

Support the Notification-smtp Provider - Strengthen Our Medusa Community!