Christmas newsletter built with email-templates
, made with ❤️
The preview is available at https://apitreecz.github.io/newsletter/.
nvm use
yarn install
Create .env
from .env.example
DRY_RUN
=1
to run without actually sending,0
to run normallyEMAIL_FROM
= email sender inName <user@domain.tld>
formatEMAIL_TO
= comma-separated list of newsletter recipient email addressesSEND
=1
to send via SMTP server,0
to render preview in browserSMTP_PASSWORD
= password to access the SMTP serverSMTP_SERVER
= the SMTP server addressSMTP_USER
= username to access the SMTP server
yarn build
yarn send
To prevent the newsletter being sent multiple times to the same recipient a sent.json
will be created. This will
contain addresses and dates of sent emails that will be checked if send
command is used again.
You can also render the newsletter into an HTML file. This will not send anything regardless the .env
config.
yarn render