Medusa won the Golden Kitty Award for Best Ecommerce Product ✨  Learn More

Medusa Logo
  • Developers
  • Blog
  • Pricing
  • Community
  • About
  • Careers
  • Get Started
  • Developers
  • Blog
  • Pricing
  • Community
  • About
  • Careers
  • Get Started
Browse

Built by

arro000

Category

Notification

Version

0.2.0

Last updated

Dec 5, 2022, 10:35:51 AM4 months ago
View sourceView on NPMCopy link

Medusa-plugin-mail-strapi

A notification service based on strapi mail api

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

The folder structure for the template is

emailTemplatePath/
│
└─── templateMap.value/
│ index.pug # html body for the mail
│ subject.pug # the string subject of mail

You need a Strapi instance as CMS

Available options (default configuration)

{
// The baseurl for your strapi server
strapiUri: STRAPI_URI,
fromEmail: "no-reply@strapi.io",
// an api key from strapi where the email send permission is enabled
strapiApiKey: STRAPI_API_KEY,
// 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",
"invite.created": "invitemember",
},
//optionals
replyTo:"",
//bcc always added to all mails
defaultBcc:"",
//cc always added to all mails
defaultCc:"",
}
altText of the image

Build your own plugins

Take Medusa up another level, and develop your own plugins with our API to speed up your processes.

Focus on building plugins for tools you use in your daily workflow, and publish to the Medusa Plugin Store for others to install.

Read more
altText of the image
Medusa

Product

Medusa for B2BIntegrationsGet StartedCareers
We're hiring

Developers

DocsAPI ReferencesCommunityDiscussions

Medusa

BlogPricingAboutContact Us

Newsletter

Get a summary of what we’ve shipped during the last month, behind the scenes updates, and team picks. Unsubscribe any time.

© 2023 MedusaJS, Inc.