0.6.2 • Published 2 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-email
You can also install it globally.
npm i -g vite-plugin-email
vmail --version
Usage
Create a new workspace.
vmail init new-workspace
cd new-workspace
npm install
The 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, Bot
Here is email.md
.
# Hello {{ name }}
Then the following content will be sent to bot@github.com
.
# Hello Bot
You can also start a dev server to preview the content of emails.
vmail dev
If everything is done, send emails with a single command.
vmail
License
MIT License © 2021 XLor