sendEmail sends a new Gmail message. Use it when you know the recipients and
content up front rather than replying within an existing conversation.
Example
automations/send-report.automation.ts
html is present and text is omitted, Automate.ax derives a plain-text
alternative from the HTML.
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".
Every input, including account, also accepts a compatible Signal.
Gmail may reject or replace a
from address that is not configured as a
send-as alias on the connected account.Output
Returns aSignal<MessageMetadata> with:
Keep
messageId for actions that operate on one message and threadId for
actions that operate on the conversation.