Mise à jour de 'notifymail.sh'
continuous-integration/drone/push Build is passing Details

poc_resend_mail
David D'ALMEIDA 1 year ago
parent 585ef229f6
commit 1eac39f684

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# Mailjet API Credentials # Resend API Credentials
API_KEY='MAILJET_API_KEY' API_KEY='MAILJET_API_KEY'
API_SECRET='MAILJET_API_SECRET' API_SECRET='re_94F1jqfM_8XvPukHypDnYscZt93FcWPdd'
#Mail info #Mail info
@ -15,14 +15,12 @@ FROM_NAME='Equipe de développement'
# This call sends a message to the given recipient with vars and custom vars. # This call sends a message to the given recipient with vars and custom vars.
curl -s \ curl -s \
-X POST \ -X POST \
--user "$API_KEY:$API_SECRET" \ https://api.resend.com/emails \
https://api.mailjet.com/v3.1/send \ -H 'Authorization: Bearer re_94F1jqfM_8XvPukHypDnYscZt93FcWPdd' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"Messages":[
{
"From": { "Email": "$FROM_EMAIL", "Name": "$FROM_NAME" }, "From": { "Email": "$FROM_EMAIL", "Name": "$FROM_NAME" },
"To": [ { "Email": "equipedev@waveheart.fr", "Name": "dev" } ], "To": [ { "Email": "equipedev@waveheart.fr", "Name": "dev" } ],
"TemplateID": 0000, "TemplateLanguage": true, "Subject": "Nouvelle version démo",
"Subject": "Nouvelle version démo", "Variables": {}, "html": "<p>Congrats on sending your <strong>first email</strong>!</p>"
"Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] } ] }' "Attachments": [ { "ContentType": "text/plain", "Filename": "changelog.md", "Base64Content": "'"$changelog"'" } ] }'
Loading…
Cancel
Save