nushell script sending mail.
An email is sent for each line you add in the send-nudes grist table. send-nudes:
- can run on premise or github actions
- is able to throttle mail delivery
- is dead simple
- Fork this repository
- Choose a nice unused name for your grist table
- Set your repository secrets (see requirements below)
- Tweak and activate your workflow, your send-nudes table is created on first run
- Add lines in your new table
- Repeat until it's of no use
- install nushell & curl
- set secrets and parameters as environment variables
- execute
nu send-nudes.nu
- …
- profit
- set secrets and parameters as repository secrets
- enable the nu.yml workflow
- …
- profit
Secret | Nature | Example |
---|---|---|
GRIST_APIKEY |
grist api key | no_its_not_real |
GRIST_ORG |
grist organization | Personal |
GRIST_WORKSPACE |
grist workspace | Home |
GRIST_HOSTNAME |
grist instance hostname | grist.example.com |
GRIST_DOC |
name of your grist document | paperclips and stamps ERP |
MAIL_SMTP |
your smtp url | smtps://smtp.example.com |
MAIL_SENDER |
your sender identity | [email protected] |
MAIL_USER |
your sender smtp username | john.doe |
MAIL_PASSWORD |
your sender password | who_am_i_? |
MAIL_TABLE |
the name of dedicated table | send_nudes_database |