https://github.com/nerkarso/medusa-plugin-mailer
A notification service to send transactional emails with Nodemailer
https://github.com/nerkarso/medusa-plugin-mailer
medusa nodemailer
Last synced: 5 months ago
JSON representation
A notification service to send transactional emails with Nodemailer
- Host: GitHub
- URL: https://github.com/nerkarso/medusa-plugin-mailer
- Owner: nerkarso
- Created: 2024-06-10T15:54:08.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-25T19:05:34.000Z (over 1 year ago)
- Last Synced: 2025-04-09T02:46:22.380Z (over 1 year ago)
- Topics: medusa, nodemailer
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# medusa-plugin-mailer
A notification service to send transactional emails with Nodemailer.
## Usage
```js
{
resolve: 'medusa-plugin-mailer',
options: {
fromEmail: process.env.EMAIL_FROM,
transport: {
host: process.env.EMAIL_SMTP_HOST,
port: process.env.EMAIL_SMTP_PORT,
secure: JSON.parse(process.env.EMAIL_SMTP_SECURE),
auth: {
user: process.env.EMAIL_SMTP_USER,
pass: process.env.EMAIL_SMTP_PASSWORD,
},
},
},
}
```
- `transport` - This is a Nodemailer transport options object, see [docs](https://nodemailer.com/smtp/#1-single-connection).
## Acknowledgement
Part of the source code is borrowed from:
- [nc-medusa-plugin-smtp](https://github.com/noel-chinaza/nc-medusa-plugin-smtp)
- [medusa-plugin-resend](https://github.com/pevey/medusa-plugin-resend)