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 <[email protected]>
To: Alice <[email protected]>, Bob <[email protected]>
Bcc: Me <[email protected]>
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