Bootez sur votre TW personnelle

This commit is contained in:
fred 2022-11-03 23:48:36 +01:00
parent 085f812c55
commit 56bcc9983e
1 changed files with 4 additions and 2 deletions

View File

@ -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<fred@g1sms.fr>
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}