-
-
Save mpcabd/03ce7d302eb4e1f5bfb7 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
#!/bin/bash | |
text="To: $2"$'\n'"From: server@example.com"$'\n'"Subject: $1"$'\n\n'; | |
while read x; do | |
text="$text"$'\n'"$x"; | |
done | |
echo "$text" | ssmtp $2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment