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.
11 lines
708 B
11 lines
708 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 "46cb7f286b30df20369be709a91424a9:957e3ac14b3b106331ccd9dfe07f67fd" \
|
|
https://api.mailjet.com/v3.1/send \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{ "Messages":[ { "From": { "Email": "contact@lamsterpilotage.fr", "Name": "Equipe de développement" }, "To": [ { { "Email": "equipedev@waveheart.fr", "Name": "dev" } ], "TemplateID": 2687222, "TemplateLanguage": true, "Subject": "Nouvelle version démo", "Variables": {}, "Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] } ] }' |