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.
26 lines
946 B
26 lines
946 B
#!/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": "<p>Congrats on sending your <strong>first email</strong>!</p>"
|
|
"Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] }' |