Send email
Send an email (plain text or HTML) with optional CC, BCC and attachments through an SMTP server.
Command in the Email toolkit · id ooa.email/send · 25 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Outgoing mail server (SMTP) | String | No | SMTP server used to send, e.g. smtp.office365.com; when empty, the outgoing server kept by Connect (smtp_host there). | |
| Port | Number | No | 587 | 587 for STARTTLS, 465 for SSL. |
| Security | String | No | starttls | Connection security. |
| User | String | No | Mailbox user name; the mailbox session's user when empty. | |
| Password | Credential | No | Password or app password from the vault; with neither password nor token the server is used without signing in (internal relay). | |
| Access token | Credential | No | OAuth 2.0 access token (Microsoft 365, Gmail) from the vault; or leave it empty and choose a saved sign-in connection, which gets and renews the token. | |
| From | String | No | Sender address; the user when empty. | |
| To | Any | Yes | Recipient address(es): text separated by , or ; or a List. | |
| Cc | Any | No | CC address(es). | |
| Bcc | Any | No | BCC address(es). | |
| Subject | String | Yes | Subject. | |
| Body | String | No | Message body. | |
| Body is HTML | Boolean | No | false | Older steps: the body is HTML. New steps choose the body type instead. |
| Attachments | List | No | File paths to attach. | |
| Importance | String | No | normal | Importance shown by the recipient's mail program. |
| Reply to | Any | No | Address(es) that replies go to, when not the sender. | |
| Read receipt | Boolean | No | false | Ask the recipient's mail program to confirm when the email is opened. |
| Inline images | List | No | HTML body only: image files embedded in the email; refer to each in the body as cid: plus its file name, e.g. <img src="cid:logo.png">. | |
| Session | String | No | mail | Mailbox session whose outgoing server is used when smtp_host is empty. |
| Body type | String | No | plain | How the body is written: plain text, HTML code, or rich text from the editor (sent as HTML). |
| Footer | String | No | Text added after the body, such as a signature or a disclaimer (written like the body). | |
| Skip missing attachments | Boolean | No | false | Send without an attachment whose file is missing (a warning says which) instead of failing. |
| Skip invalid addresses | Boolean | No | false | Leave out addresses that are not valid or that the server refuses (a warning says which) and send to the others. |
| Charset | String | No | UTF-8 | Character set of the subject and body, e.g. UTF-8 (the default) or ISO-8859-1. |
| Timeout (seconds) | Number | No | 60 | How long to wait for the mail server while sending, in seconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| message_id | String | Message-ID of the sent email. |