0.6.2 • Published 4 years ago
vite-plugin-email v0.6.2
vite-plugin-email
Send emails rendered by Vite and Markdown-It automatically.
Installation
npm i -D vite-plugin-emailYou can also install it globally.
npm i -g vite-plugin-email
vmail --versionUsage
Create a new workspace.
vmail init new-workspace
cd new-workspace
npm installThe created workspace contains some config files. data.csv stores the list of receivers and corresponding information. The receiver column specify the email of the receiver. email.md is the email content template to be rendered. You can use {{ ... }} to insert variable from data.csv.
For example, here is data.csv.
receiver, name
bot@github.com, BotHere is email.md.
# Hello {{ name }}Then the following content will be sent to bot@github.com.
# Hello BotYou can also start a dev server to preview the content of emails.
vmail devIf everything is done, send emails with a single command.
vmailLicense
MIT License © 2021 XLor