Paperboy is a CLI tool that delivers new posts from your favorite sites by email.
From binaries
Check out the release page for prebuilt versions of Paperboy.
Set these environment variable values:
SMTP_HOST="smtp.mailtrap.io" # SMTP host
SMTP_PORT=2525 # SMTP port
SMTP_USERNAME="username" # SMTP username
SMTP_PASSWORD="password" # SMTP password
SMTP_FROM="Paperboy <rss@domain.com>" # the sender
SMTP_STARTTLS="true" # use STARTTLS (default: true, set to false for local dev)
MAIL_TO="email@domain.com" # the recipient
EMAIL_SUBJECT="Subject" # Email subject (optional)Paperboy CLI
Usage: paperboy [OPTIONS] <COMMAND>
Commands:
deliver Deliver new posts from sites by email
help Print this message or the help of the given subcommand(s)
Options:
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-h, --help Print help
-V, --version Print versionpaperboy deliver reader@localhost subs_example.txt emails/daily_email.hbs emails/daily_email_text.hbsIf you want an automatic and free way to receive daily "newspapers" using paperboy, take a look at the paperboy-template GitHub project.
Use Docker Compose to run Mailpit for local email testing:
docker compose up -dThen configure the environment variables (see .env.example):
source .env.example
cargo run -- deliver reader@localhost subs_example.txt emails/daily_email.hbs emails/daily_email_text.hbsOpen http://localhost:8025 to view the received emails.
cargo test
This code is distributed under the terms of MIT license. See LICENSE-MIT for details.
Image generated by DALL-E OpenAI.
