#!/bin/bash # Resend API Credentials API_KEY='MAILJET_API_KEY' API_SECRET='re_94F1jqfM_8XvPukHypDnYscZt93FcWPdd' #Mail info SUBJECT='Nouvelle version démo' changelog="$(base64 -w 0 CHANGELOG)" FROM_EMAIL='contactHeartTrack@gmail.com' FROM_NAME='Equipe de développement' # This call sends a message to the given recipient with vars and custom vars. curl -s \ -X POST \ https://api.resend.com/emails \ -H 'Authorization: Bearer re_94F1jqfM_8XvPukHypDnYscZt93FcWPdd' \ -H 'Content-Type: application/json' \ -d '{ "From": { "Email": "$FROM_EMAIL", "Name": "$FROM_NAME" }, "To": [ { "Email": "equipedev@waveheart.fr", "Name": "dev" } ], "Subject": "Nouvelle version démo", "html": "

Congrats on sending your first email!

" "Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] }'