ShareShortcuts

Send an Email with SendGrid

9-ninja
Dupliquer « Send an Email with SendGrid »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que 9-ninja soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
74K
Enregistré
2
Actions
12
Catégorie
API
Version
1.0
Langue
EN

Sends an e-mail via the SendGrid API

Documentation: SendGrid API

Requires an API-KEY from Sendgrid.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 19 oct. 2018

First release

Ce qu’il fait

12 actions
  1. Text
  2. Set Variable
    SendGridAPIKey
  3. Ask for Input
    What's the subject of the email?
  4. Set Variable
    Subject
  5. Ask for Input
    What's the email address you want to send to?
  6. Set Variable
    ToEmail
  7. Ask for Input
    What email is this message coming from?
  8. Set Variable
    FromEmail
  9. Ask for Input
    What is the body of the email?
  10. Set Variable
    ContentHTML
  11. URL
    https://api.sendgrid.com/v3/mail/send
  12. Get Contents of URL

Afficher en tant que code
Bêta

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"
})
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
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 ..

Publicité

Plus de 9-ninja

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité