Created
June 9, 2011 12:32
-
-
Save kopiro/1016640 to your computer and use it in GitHub Desktop.
Send mail from File (Unix Terminal)
This file contains hidden or 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
for i in $(cat FILE); | |
do echo "BODY" | mail -s "SUBJECT" $i; | |
printf "Sent to $i\n"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment