Christmas newsletter built with email-templates, made with β€οΈ
The preview is available at https://apitreecz.github.io/newsletter/.
nvm use
yarn installCreate .env from .env.example
DRY_RUN=1to run without actually sending,0to run normallyEMAIL_FROM= email sender inName <user@domain.tld>formatEMAIL_TO= comma-separated list of newsletter recipient email addressesSEND=1to send via SMTP server,0to render preview in browserSMTP_PASSWORD= password to access the SMTP serverSMTP_SERVER= the SMTP server addressSMTP_USER= username to access the SMTP server
yarn buildyarn sendTo 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