24 oct. 2018
sarahnhahs
Thank so much @9-ninja! I would like to ask if it is possible to add an attachment from the files App ..
First release
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#define color darkblue
#define glyph magicWand
@SendGridAPIKey = "Put your SendGrid API Key here"
prompt("What's the subject of the email?")
@Subject = nil
prompt("What's the email address you want to send to?")
@ToEmail = nil
prompt("What email is this message coming from?")
@FromEmail = nil
prompt("What is the body of the email?")
@ContentHTML = nil
url("https://api.sendgrid.com/v3/mail/send")
fileRequest("", "POST", {
"authorization": "Bearer {@SendGridAPIKey}",
"content-type": "application/json"
})
Thank so much @9-ninja! I would like to ask if it is possible to add an attachment from the files App ..