Skip to content

Instantly share code, notes, and snippets.

@ab
Created March 23, 2014 06:07
Show Gist options
  • Save ab/9719368 to your computer and use it in GitHub Desktop.
Save ab/9719368 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -eux
first_next_month="$(date -d "+1 month - $(date +%d) days + 1 day" +%A)"
/usr/sbin/sendmail -t <<END
From: Me <me@example.com>
To: Alice <alice@example.com>, Bob <bob@example.com>
Bcc: Me <me@example.com>
Subject: Reminder: rent is due $first_next_month EOM
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment