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 2 years ago
.env.sample Using mutt now 2 years ago
.gitignore First commit 2 years ago
LICENSE Initial commit 2 years ago Using mutt now 2 years ago Correct email To 2 years ago


A bash script who send newsletters


Ghost can't send newsletter with another way than Mailgun. So, I wrote this script (improveable) for sending newsletters.


  • mutt
  • curl

Prepare mutt

Create ~/.muttrc and add under into this file

set my_pass='S3Cr3t'
set my_user=''
set realname = ''
set from = ''
set use_from = yes

set smtp_url=smtps://$my_user:$
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 : ./ 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).