Skip to main content

Send email

Send an email from a Microsoft 365 mailbox with optional CC, BCC and attachments (up to 3 MB each).

Command in the Microsoft 365 toolkit · id ooa.microsoft365/send_mail · 15 inputs (2 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
ToAnyYesRecipient address(es).
SubjectStringYesSubject.
BodyStringNoMessage body.
Body is HTMLBooleanNofalseBody is HTML.
CcAnyNoCC address(es).
BccAnyNoBCC address(es).
AttachmentsListNoFile paths to attach.
FromStringNoSend as this address, e.g. a shared mailbox; the account needs Send As rights. The mailbox itself when empty.
ImportanceStringNonormalImportance shown to the recipients.
Reply toAnyNoAddress(es) that replies go to, when not the sender.
Save to sent itemsBooleanNotrueKeep a copy in Sent Items.
Read receiptBooleanNofalseAsk for a receipt when the email is read.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.