Go to file
Dryusdan 365464c342 Correct email To 2020-05-14 17:10:50 +02:00
.env.sample Using mutt now 2020-05-14 16:48:24 +02:00
.gitignore First commit 2020-05-14 08:52:57 +02:00
LICENSE Initial commit 2020-05-14 08:48:42 +02:00
README.md Using mutt now 2020-05-14 16:48:24 +02:00
ghost.sh Correct email To 2020-05-14 17:10:50 +02:00

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