SendGrid Send Email with Attachment
Sends an email with a file attachment through SendGrid. Use it when an email needs to carry a document, such as a receipt or label.
What it does
- Sends an HTML email with a single attachment via SendGrid.
- Takes the attachment as base64 content plus a filename.
- Supports a custom sender name and optional BCC recipients.
Inputs
| Name | Type | Description |
|---|---|---|
| Email From | String | Email from |
| Email To | String | Email to |
| Name FROM | String | Name FROM |
| BCC Emails | String | BCC Emails separated by comma |
| API Key | String (sensitive) | SendGrid API Key |
| Subject | String | Subject |
| HTML Body | String | Message html body |
| Attachment in Base64 | String | Attachment in base64 |
| Filename | String | Filename |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether the message was successfully sent |
Notes
- The attachment must be base64-encoded, and the filename should include the correct extension.
- The sender address must belong to a verified SendGrid sender or authenticated domain.