market-plugin-nodemailer

0.1.1 • Public • Published

medusa-plugin-nodemailer

Nodemailer Plugin for Medusa to send transactional emails.

Learn more about how you can use this plugin in the documentaion.

Options

If no values are defined for a given option, the plugin will not try to send an email for that event.

{
    host: process.env.EMAIL_HOST, //required
    port: process.env.EMAIL_PORT, //required
    auth:{
      user:process.env.EMAIL_AUTH_USER,
      pass:process.env.EMAIL_AUTH_PASS,
    },    
    from: process.env.EMAIL_DEFAULT_FROM,
}

Dynamic usage

You can resolve the Nodemailer service to dynamically send emails via nodemailer.

Example:

const nodemailerService = scope.resolve("nodemailerService")
nodemailerService.sendEmail("d-123....", "subject", "ACME <acme@mail.com>", "customer@mail.com", { dynamic: "data" })

Package Sidebar

Install

npm i market-plugin-nodemailer

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

139 kB

Total Files

12

Last publish

Collaborators

  • baotao