From 56bcc9983edf1cb8e13fe2c5338b933dd157e517 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 3 Nov 2022 23:48:36 +0100 Subject: [PATCH] Bootez sur votre TW personnelle --- tools/mailjet.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/mailjet.sh b/tools/mailjet.sh index d3bb6a9b..d08cf65e 100755 --- a/tools/mailjet.sh +++ b/tools/mailjet.sh @@ -23,13 +23,15 @@ messfile="$2" # CORPS MESSAGE [[ ! $1 ]] && mail="support@qo-op.com" SUBJECT="[(♥‿‿♥)] message personnel. merci. " -MESSAGE="( ◕‿◕) Bonjour $PLAYER\n\nTW http://qwantic.com:1234 .\n\nAstroport" +MESSAGE="( ◕‿◕) Bonjour $PLAYER\n\nBootez sur votre TW personnelle http://qo-op.com:1234 .\n\nAstroport" [[ $messfile && -f $messfile ]] && [[ $(file --mime-type -b $messfile) == 'text/plain' ]] && MESSAGE=$(cat $messfile) -echo "From: Fred +echo "From: fred@g1sms.fr To: EMAIL Subject: SUBJECT MESSAGE " > ~/.zen/tmp/email.txt +[[ $messfile && -f $messfile ]] && [[ $(file --mime-type -b $messfile) == 'text/plain' ]] && cat $messfile >> ~/.zen/tmp/email.txt + cat ~/.zen/tmp/email.txt | sed "s~EMAIL~${mail}~g" | sed "s~SUBJECT~${SUBJECT}~g" | sed "s~MESSAGE~${MESSAGE}~g" | ssmtp -v ${mail}