0.8.0 • Published 1 year ago

@rootxpdev/medusa-email-plugin v0.8.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

Medusa email plugin

Send emails on certain actions in medusa store

Email templates

All email templates are stored under data/emails directory. This directory can be copy-pasted inside your medusa backend root directory.

Installation

Run the following command

npm install --save @rootxpdev/medusa-email-plugin

or

yarn add @rootxpdev/medusa-email-plugin

Add the following values to your medusa-config.js file

const plugins = [
  // ...other plugin configuration
  {
    resolve: "@rootxpdev/medusa-email-plugin",
    options: {
        templateDir: "node_modules/@rootxpdev/medusa-email-plugin/data/emails",
        fromAddress: "noreply@mymedusastore.com",
        smtpHost: "sandbox.smtp.mailtrap.io",
        smtpPort: 2525,
        smtpUser: "xxx",
        smtpPassword: "xxx",
    }
  },
];

Testing locally

Run the following command to register this module locally

yarn link

Run this command inside your medusa backend folder to use it

yarn link "@rootxpdev/medusa-email-plugin"

Test emails

Launch your medusajs backend and call the following endpoint

curl --request POST \
  --url http://localhost:9000/admin/email_test \
  --header 'Content-Type: application/json' \
  --data '{
	"event": "testing",
	"payload": {
		"foo": "bar"
	}
}'
0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.9

1 year ago

0.4.8

1 year ago

0.4.6

1 year ago

0.4.5

1 year ago

0.4.3

1 year ago

0.4.1

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago