ShareShortcuts

Send an Email with SendGrid

9-ninja
Создать форк «Send an Email with SendGrid»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы 9-ninja получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
74K
Сохранено
2
Действия
12
Категория
API
Версия
1.0
Язык
EN

Sends an e-mail via the SendGrid API

Documentation: SendGrid API

Requires an API-KEY from Sendgrid.

Что нового

Версия 1.0

First release

История версий
1.0 19 окт 2018 г.

First release

Что делает

Действий: 12
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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"
})
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
24 окт 2018 г.
sarahnhahs

Thank so much @9-ninja! I would like to ask if it is possible to add an attachment from the files App ..

Реклама

Ещё от 9-ninja

См. все

Вам также может понравиться

См. все
Реклама