diff --git a/tools/mailjet.sh b/tools/mailjet.sh index a9f3f7aa..1e28eb68 100755 --- a/tools/mailjet.sh +++ b/tools/mailjet.sh @@ -72,6 +72,7 @@ rm -f ~/.zen/tmp/email.txt EMAILZ=$(ipfs add -q ~/.zen/tmp/email.txt) echo "/ipfs/${EMAILZ}" +ipfs pin rm ${EMAILZ} export TEXTPART="$(myIpfsGw)/ipfs/${EMAILZ}" @@ -114,6 +115,7 @@ curl -s \ -H 'Content-Type: application/json' \ -d "$json_payload" + # This call sends an email to one recipient. #~ TEXTPART=$(cat ~/.zen/tmp/email.txt | sed ':a;N;$!ba;s/\n/\\n/g' | tr '"' '\\\"') #~ HTMLPART=$(cat ~/.zen/tmp/email.txt | sed ':a;N;$!ba;s/\n/
/g' | tr '"' '\\\"')