Skip to content

Instantly share code, notes, and snippets.

@mpcabd mpcabd/logrotate_ssmtp.sh Secret
Created Dec 8, 2013

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.