Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Outgoing mail server (SMTP)StringNoSMTP server used to send, e.g. smtp.office365.com; when empty, the outgoing server kept by Connect (smtp_host there).
PortNumberNo587587 for STARTTLS, 465 for SSL.
SecurityStringNostarttlsConnection security.
UserStringNoMailbox user name; the mailbox session's user when empty.
PasswordCredentialNoPassword or app password from the vault; with neither password nor token the server is used without signing in (internal relay).
Access tokenCredentialNoOAuth 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.
FromStringNoSender address; the user when empty.
ToAnyYesRecipient address(es): text separated by , or ; or a List.
CcAnyNoCC address(es).
BccAnyNoBCC address(es).
SubjectStringYesSubject.
BodyStringNoMessage body.
Body is HTMLBooleanNofalseOlder steps: the body is HTML. New steps choose the body type instead.
AttachmentsListNoFile paths to attach.
ImportanceStringNonormalImportance shown by the recipient's mail program.
Reply toAnyNoAddress(es) that replies go to, when not the sender.
Read receiptBooleanNofalseAsk the recipient's mail program to confirm when the email is opened.
Inline imagesListNoHTML 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">.
SessionStringNomailMailbox session whose outgoing server is used when smtp_host is empty.
Body typeStringNoplainHow the body is written: plain text, HTML code, or rich text from the editor (sent as HTML).
FooterStringNoText added after the body, such as a signature or a disclaimer (written like the body).
Skip missing attachmentsBooleanNofalseSend without an attachment whose file is missing (a warning says which) instead of failing.
Skip invalid addressesBooleanNofalseLeave out addresses that are not valid or that the server refuses (a warning says which) and send to the others.
CharsetStringNoUTF-8Character set of the subject and body, e.g. UTF-8 (the default) or ISO-8859-1.
Timeout (seconds)NumberNo60How long to wait for the mail server while sending, in seconds.

Outputs​

OutputTypeWhat it is
message_idStringMessage-ID of the sent email.