365464c342 | ||
---|---|---|
.env.sample | ||
.gitignore | ||
LICENSE | ||
README.md | ||
ghost.sh |
README.md
ghost-newsletters
A bash script who send newsletters
Prelude
Ghost can't send newsletter with another way than Mailgun. So, I wrote this script (improveable) for sending newsletters.
Prerequisite
- mutt
- curl
Prepare mutt
Create ~/.muttrc
and add under into this file
set my_pass='S3Cr3t'
set my_user='me@domain.fr'
set realname = 'Dryusdan.fr'
set from = 'me@domain.fr'
set use_from = yes
set smtp_url=smtps://$my_user:$my_pass@smtp.domain.fr
set ssl_force_tls = yes
set ssl_starttls = yes
How to work
First time, copy .env.sample to .env and complete this file.
Get id of post (admin>post>mypost in url the last value (like 5b7522322114)).
Then, write in a terminal : ./ghost.sh postid
where postid is the value get before.
This script send with mutt, one by one, with 30 secondes to slip (to esquivate rate limit).