code-docs/plugins/connections/sendgrid.md
SendGrid email connection for Lowdefy.
| Type | Purpose |
|---|---|
SendGrid | Connect to SendGrid |
connections:
- id: email
type: SendGrid
properties:
apiKey:
_secret: SENDGRID_API_KEY
| Type | Purpose |
|---|---|
SendGridSend | Send email |
requests:
- id: sendWelcome
type: SendGridSend
connectionId: email
properties:
to:
_state: userEmail
from: [email protected]
subject: Welcome to Our App
text: |
Hi {{ name }},
Welcome to our platform!
html: |
<h1>Hi {{ name }},</h1>
<p>Welcome to our platform!</p>
templateData:
name:
_state: userName
| Property | Type | Description |
|---|---|---|
to | string/array | Recipient(s) |
from | string | Sender address |
subject | string | Email subject |
text | string | Plain text body |
html | string | HTML body |
templateId | string | SendGrid template ID |
templateData | object | Template variables |
requests:
- id: sendFromTemplate
type: SendGridSend
connectionId: email
properties:
to:
_state: email
from: [email protected]
templateId: d-xxxxxxxxxxxxx
templateData:
first_name:
_state: firstName
order_id:
_state: orderId