Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

medusa-plugin-smtp

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-plugin-smtp

SMTP transactional emails

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
289
increased by46.7%
Maintainers
1
Weekly downloads
 
Created
Source

Medusa-plugin-smtp

A notification service based on nodemailer

Details

It uses the email-templates npm package and pug for rendering html emails. Documentation for this can be found here: https://github.com/forwardemail/email-templates

Available options (default configuration)

{
    fromEmail: "noreply@medusajs.com",
    // this object is input directly into nodemailer.createtransport(), so anything that works there should work here
    // see: https://nodemailer.com/smtp/#1-single-connection and https://nodemailer.com/transports/
    transport: {
        sendmail: true,
        path: "/usr/sbin/sendmail",
        newline: "unix",
    },
    // an example for an office365 smtp transport:
    // {
    //     host: "smtp.office365.com",
    //     port: 587,
    //     secureConnection: false,
    //     auth: {
    //         user: process.env.EMAIL_SENDER_ADDRESS,
    //         pass: process.env.EMAIL_SENDER_PASS,
    //     },
    //     tls: {
    //         ciphers: "SSLv3",
    //     },
    //     requireTLS: true,
    // },
    // this is the path where your email templates are stored
    emailTemplatePath: "data/emailTemplates",
    // this maps the folder/template name to a medusajs event to use the right template
    // only the events that are registered here are subscribed to
    templateMap: {
        // "eventname": "templatename",
        "order.placed": "orderplaced",
    },
}

Keywords

FAQs

Package last updated on 10 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc