forked from STI/Astroport.ONE
show pseudo in title
This commit is contained in:
parent
883813bb8e
commit
5c7cf37272
|
@ -21,9 +21,11 @@ echo '
|
||||||
mail="$1" # EMAIL DESTINATAIRE
|
mail="$1" # EMAIL DESTINATAIRE
|
||||||
[[ ! $1 ]] && mail="support@qo-op.com"
|
[[ ! $1 ]] && mail="support@qo-op.com"
|
||||||
|
|
||||||
|
pseudo=$(echo $mail | cut -d '@' -f 1)
|
||||||
|
|
||||||
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGE
|
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGE
|
||||||
|
|
||||||
SUBJECT="[UPlanet/Astroport] : $(myHostName)"
|
SUBJECT="[UPlanet/Astroport] $pseudo : $(myHostName)"
|
||||||
MESSAGE="Bonjour $PLAYER
|
MESSAGE="Bonjour $PLAYER
|
||||||
UN MESSAGE POUR VOUS.
|
UN MESSAGE POUR VOUS.
|
||||||
|
|
||||||
|
@ -56,7 +58,10 @@ export MJ_APIKEY_PRIVATE='58256ba8ea62f68965879f53bbb29f90'
|
||||||
export SENDER_EMAIL='support@g1sms.fr'
|
export SENDER_EMAIL='support@g1sms.fr'
|
||||||
export RECIPIENT_EMAIL=${mail}
|
export RECIPIENT_EMAIL=${mail}
|
||||||
|
|
||||||
|
# MESSAGE HEADER
|
||||||
echo "$MESSAGE" > ~/.zen/tmp/email.txt
|
echo "$MESSAGE" > ~/.zen/tmp/email.txt
|
||||||
|
|
||||||
|
# + HTML in FILE
|
||||||
[[ -s $messfile ]] && cat $messfile >> ~/.zen/tmp/email.txt \
|
[[ -s $messfile ]] && cat $messfile >> ~/.zen/tmp/email.txt \
|
||||||
|| echo "$messfile" >> ~/.zen/tmp/email.txt
|
|| echo "$messfile" >> ~/.zen/tmp/email.txt
|
||||||
|
|
||||||
|
@ -89,7 +94,7 @@ json_payload='{
|
||||||
],
|
],
|
||||||
"Subject": "'${SUBJECT}'",
|
"Subject": "'${SUBJECT}'",
|
||||||
"TextPart": "'$(myIpfsGw)/ipfs/${EMAILZ}'",
|
"TextPart": "'$(myIpfsGw)/ipfs/${EMAILZ}'",
|
||||||
"HTMLPart": "<h3>You have a message <br><a href=\"'$(myIpfsGw)'/ipfs/'${EMAILZ}'\">READ ME</a>!</h3><br />May the good vibes be with you!<br>Astroport Station "
|
"HTMLPart": "<h3>You have a <br><a href=\"'$(myIpfsGw)'/ipfs/'${EMAILZ}'\">MESSAGE</a>!</h3><br />May the good vibes be with you!<br>Astroport UPlanet"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}'
|
}'
|
||||||
|
|
Loading…
Reference in New Issue