bart uses the net/smtp package,
which uses TLS if possible.
Still, just to be safe, I explicitly discourage using bart for mission-critical information.
$ make install
You can get them from GitHub releases.
You want to send an HTML email stored as a Mustache template in template.mustache.
Your configuration (see below) is defined in config.bart.yml.
To preview the rendered emails, call bart without the send -s flag:
$ bart -t template.mustache -c config.bart.yml
Hello, Jane Doe
Send flag not set: opening preview in "chromium-browser"
Send flag not set: opening preview in "chromium-browser"
To send the email, add the send flag -s:
$ bart -t template.mustache -c config.bart.yml -s
Hello, Jane Doe
Please enter your credentials for "smtpserver.xyz.com"
Login: janedoe
Password:
Will send to [john.doe@abc.com jane.doe@xyz.com]
Will send to [max.mustermann@def.de jane.doe@xyz.com]
Since this email will not appear in your provider's Sent folder,
bart will send you a BCC copy.
For help, call bart -h.
Here's an example config file:
author:
name: Jane Doeemail: jane.doe@xyz.combrowser: chromium-browseremail_server:
hostname: smtpserver.xyz.comport: 123global_context:
subject: Global subjectrecipients:
john.doe@abc.com:
salutation: Hi Johnsubject: Local subject, overrides global onemax.mustermann@def.de:
salutation: Hello MaxBasically, recipients is a hashmap keyed by recipient email addresses;
the values are local contexts specific for each recipient.
Notice that local context overrides global one!