You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web/notify.sh

11 lines
642 B

#!/bin/bash
changelog="$(base64 -w 0 CHANGELOG)"
# This call sends a message to the given recipient with vars and custom vars.
curl -s \
-X POST \
--user ":" \
https://api.mailjet.com/v3.1/send \
-H 'Content-Type: application/json' \
-d '{ "Messages":[ { "From": { "Email": "contactHeartTrack@gmail.com", "Name": "Equipe de développement" }, "To": [ { { "Email": "equipedev@waveheart.fr", "Name": "dev" } ], "TemplateID": 0000, "TemplateLanguage": true, "Subject": "Nouvelle version démo", "Variables": {}, "Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] } ] }'