Транзакционные письма через Postmark
Postmark notification plugin for Medusa v2
This plugin provides robust transactional email support for MedusaJS using Postmark. It supports advanced workflows for abandoned cart reminders, template management, PDF attachments, and more.
1yarn add medusa-plugin-postmark 2npm install medusa-plugin-postmarkAdd to your as a notification provider and as a plugin to enable UI and abandoned carts:
1defineConfig({2 modules: [3 {4 resolve: "@medusajs/medusa/notification",5 options: {6 providers: [7 {8 resolve: "medusa-plugin-postmark/providers/postmark",9 id: "postmark",10 options: {11 channels: ["email"],12 apiKey: process.env.POSTMARK_API_KEY!,13 default: {14 from: process.env.POSTMARK_FROM,15 bcc: process.env.POSTMARK_BCC,16 },17 },18 },19 ],20 },21 },22 ],23
24 plugins: [25 {26 resolve: "medusa-plugin-postmark",27 options: {28 apiKey: process.env.POSTMARK_API_KEY!,29 },30 },31 ],32})MIT License © 2023 Bram Hammer
This plugin is originally based on medusa-plugin-sendgrid by Oliver Juhl.