Created
April 7, 2018 17:56
-
-
Save KristerV/3220eac9daa9ff1200373d496dae3d77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Take file from Desktop with email contents | |
# 2. curl the mailgun API | |
cat ~/Desktop/email | \ | |
curl -s --user 'api:key-YOURKEYHERE' \ | |
https://api.mailgun.net/v3/YOUR-MAILGUN-DOMAIN/messages \ | |
-F from='Your Name <[email protected]>' \ | |
-F to='[email protected]' \ | |
-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