gmail.forwardMessage sends a message to new recipients, builds a forwarded-message block from its headers, and preserves attachments by default.
Example
automations/forward-invoices.automation.ts
Inputs
Recipient is an email string or { address: string; name?: string }. Attachment is a File or an object containing file with optional filename, contentId, and disposition: "attachment" | "inline".
Inputs accept compatible signals.
Preserving original attachments requires the automation to download and upload
those files. Set
includeAttachments: false when you only need the message
content, especially for large messages.Output
ReturnsSignal<MessageMetadata>: