Created
November 29, 2017 14:17
-
-
Save sochotnicky/a39252a594d80f7b69452ac0e717c5b1 to your computer and use it in GitHub Desktop.
/home/w0rm/bin/pto
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 | |
if [ $# -ne 2 ];then | |
echo "Two arguments expected (subject, body)" | |
exit 1 | |
fi | |
msmtp --from="Stanislav Ochotnicky <sochotnicky@redhat.com>" \ | |
-t << EOF | |
From: Stanislav Ochotnicky <sochotnicky@redhat.com> | |
To: pnt-devops-leave@redhat.com, brno-pto-list@redhat.com | |
Subject: $1 | |
$2 | |
-- | |
Stanislav Ochotnicky <sochotnicky@redhat.com> | |
Business System Analyst, Hosted and Shared Services | |
PGP: 7B087241 | |
Red Hat Inc. http://cz.redhat.com | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment