Send an email using Sendgrid
| parameter | description | required | default |
|---|---|---|---|
| from | The email address of the sender | true |
|
| from_name | The name of the sender | false |
|
| reply_to | The email address to reply to | false |
|
| reply_to_name | The name to reply to | false |
|
| to | The email address of the recipient(s), comma delimited | true |
|
| cc | The email address of the CC recipient(s), comma delimited | false |
|
| subject | The subject of the email | true |
|
| body_text | The body of the email in text format | false |
|
| body_text_file | A file path to the body of the email in text format | false |
|
| body_html | The body of the email in HTML format | false |
|
| body_html_file | A file path to the body of the email in HTML format | false |
|
| attachment | A file path to attach to the email | false |
|
| attachments | A YAML list/JSON array of file paths to attach to the email | false |
|
| sendgrid_api_key | The Sendgrid API key, may also be passed via env: SENDGRID_API_KEY | false |
| parameter | description |
|---|---|
| status | The status code returned by the Sendgrid API |
This action is a node20 action.