Created
March 1, 2022 06:04
-
-
Save i40sys/376b876a316a7cf3c9ce1beeb516102d 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 | |
source config | |
function mailSend() { | |
TMP_FILE="/tmp/ups.email" | |
/bin/echo "To: $MAIL_NAME <$MAIL_RCPT>" > $TMP_FILE | |
/bin/echo "Subject: $1" >> $TMP_FILE | |
/bin/echo "" >> $TMP_FILE | |
/bin/echo "$2" >> $TMP_FILE | |
/usr/sbin/sendmail -v $MAIL_RCPT < $TMP_FILE | |
/bin/rm $TMP_FILE | |
} | |
#mailSend titol contingut |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment