A bash script who send newsletters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dryusdan 365464c342 Correct email To 4 months ago
.env.sample Using mutt now 4 months ago
.gitignore First commit 4 months ago
LICENSE Initial commit 4 months ago
README.md Using mutt now 4 months ago
ghost.sh Correct email To 4 months ago

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).