Instantly share code, notes, and snippets.

What would you like to do?
# 1. Take file from Desktop with email contents
# 2. curl the mailgun API
cat ~/Desktop/email | \
curl -s --user 'api:key-YOURKEYHERE' \ \
-F from='Your Name <>' \
-F to='' \
-F subject='Gotto change me every time' \
-F text="<-" "$@" # the email file gets put into this field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment