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

NameTypeDescription
Email FromStringEmail from
Email ToStringEmail to
Name FROMStringName FROM
BCC EmailsStringBCC Emails separated by comma
API KeyString (sensitive)SendGrid API Key
SubjectStringSubject
HTML BodyStringMessage html body
Attachment in Base64StringAttachment in base64
FilenameStringFilename

Outputs

NameTypeDescription
SuccessBooleanWhether 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.

API reference