put some html in messages

This commit is contained in:
fred 2024-01-03 14:36:53 +01:00
parent 0f3701b843
commit 5a2a1a400c
3 changed files with 20 additions and 18 deletions

View File

@ -324,8 +324,8 @@ for PLAYER in ${PLAYERONE[@]}; do
&& SBIRTH=$(${MY_PATH}/../tools/MOATS2seconds.sh ${BIRTHDATE}) \ && SBIRTH=$(${MY_PATH}/../tools/MOATS2seconds.sh ${BIRTHDATE}) \
&& SNOW=$(${MY_PATH}/../tools/MOATS2seconds.sh ${MOATS}) \ && SNOW=$(${MY_PATH}/../tools/MOATS2seconds.sh ${MOATS}) \
&& [[ $(( SNOW - SBIRTH )) -gt $(( 27 * 24 * 60 * 60 )) ]] \ && [[ $(( SNOW - SBIRTH )) -gt $(( 27 * 24 * 60 * 60 )) ]] \
&& echo "WARNNG. Your TW will be UNPLUGGED in 3 days" > ~/.zen/tmp/alert \ && echo "<html><body><h1>WARNNG.</h1> Your TW will be UNPLUGGED in 3 days : " > ~/.zen/tmp/alert \
&& echo "$(myIpfsGw)/ipfs/${CURCHAIN}" >> ~/.zen/tmp/alert \ && echo "<a href=$(myIpfsGw)/ipfs/${CURCHAIN}> ${PLAYER} TW </a></body></html>" >> ~/.zen/tmp/alert \
&& ${MY_PATH}/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/alert \ && ${MY_PATH}/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/alert \
&& [[ $(( SNOW - SBIRTH )) > $(( 30 * 24 * 60 * 60 )) ]] \ && [[ $(( SNOW - SBIRTH )) > $(( 30 * 24 * 60 * 60 )) ]] \
&& echo ">>>> PLAYER UNPLUG >>>>> BYE BYE ${PLAYER}" \ && echo ">>>> PLAYER UNPLUG >>>>> BYE BYE ${PLAYER}" \

View File

@ -119,24 +119,25 @@ while read title; do
for email in "${unique_combined[@]}"; do for email in "${unique_combined[@]}"; do
echo "Hello echo "<html><body>
<h1>Hello</h1>
Tiddler with same title is existing in ${unique_combined[*]} TW(s) Tiddler with same title is existing in ${unique_combined[*]} TW(s)
<br>
$title <ul>
<li>$title</li>
* ACTUAL : $(myIpfsGw)/ipfs/${INSIDETID} <li><a href='$(myIpfsGw)/ipfs/${INSIDETID}'>Actual Tiddler</a></li>
Email addresses unique in ACTUAL Tiddler : ${IUNIQUE[*]} <li><a href='$(myIpfsGw)/ipfs/${NEWTID}'>NEW Tiddler</a> being introduced by : ${NUNIQUE[*]}</li>
</ul>
* NEW : $(myIpfsGw)/ipfs/${NEWTID} <br>
Email addresses unique in NEW Tiddler : ${NUNIQUE[*]} To Accept<br>
${COMMON[*]} have to copy <a href='$(myIpfsGw)/ipfs/${NEWTID}'>NEW Tiddler</a> in their TW
Make common email addresses : ${COMMON[*]} <br><br>
or fork modifying titles To Refuse<br>
${NUNIQUE[*]} must fork by deleting or modifying New Tiddler title.
Open discussion in room ${MOATS}\n <br>
https://vdo.copylaradio.com <h2><a href='$(myIpfsGw)/ipfs/QmcSkcJ2j7GAsC2XhVqGSNAKVRpXgxfjjvDbhD5YxrncZY/?room=${MOATS}'>Actual Tiddler</a>Engage discussion about it...</a></h2>
" > ~/.zen/tmp/${MOATS}/g1message </body></html>" > ~/.zen/tmp/${MOATS}/g1message
${MY_PATH}/mailjet.sh "$email" ~/.zen/tmp/${MOATS}/g1message ${MY_PATH}/mailjet.sh "$email" ~/.zen/tmp/${MOATS}/g1message

View File

@ -56,6 +56,7 @@ export RECIPIENT_EMAIL=${mail}
# + HTML in FILE # + HTML in FILE
touch ~/.zen/tmp/email.txt
[[ -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