Created
June 18, 2017 17:32
-
-
Save marcolussetti/c500fa1fe1977563459f4375009e8662 to your computer and use it in GitHub Desktop.
Pipe mail from mytru-cli.py
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
#!/bin/bash | |
input="${@:1}" | |
if echo "${@:1}" | grep ","; then | |
curl -s --user 'api:key-WHATEVER' \ | |
https://api.mailgun.net/v3/DOMAIN_NAME/messages \ | |
-F from='Transcript Bot <mailgun@DOMAIN_NAME>' \ | |
-F to='RECEIVER' \ | |
-F subject='Change in Transcript Marks for Current Session' \ | |
-F text="$input" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment