Mandala
Tools

Outlook

Send, read, draft, forward, and move Outlook email messages

Usage Instructions

Integrate Outlook into the workflow. Can read, draft, send, forward, and move email messages. Can be used in trigger mode to trigger a workflow when a new email is received.

Tools

outlook_send

Send emails using Outlook

Input

ParameterTypeRequiredDescription
tostringYesRecipient email address
subjectstringYesEmail subject
bodystringYesEmail body content
contentTypestringNoContent type for the email body (text or html)
replyToMessageIdstringNoMessage ID to reply to (for threading)
conversationIdstringNoConversation ID for threading
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
attachmentsfile[]NoFiles to attach to the email

Output

ParameterTypeDescription
successbooleanEmail send success status
statusstringDelivery status of the email
timestampstringTimestamp when email was sent
messagestringSuccess or error message

outlook_draft

Draft emails using Outlook

Input

ParameterTypeRequiredDescription
tostringYesRecipient email address
subjectstringYesEmail subject
bodystringYesEmail body content
contentTypestringNoContent type for the email body (text or html)
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
attachmentsfile[]NoFiles to attach to the email draft

Output

ParameterTypeDescription
successbooleanEmail draft creation success status
messageIdstringUnique identifier for the drafted email
statusstringDraft status of the email
subjectstringSubject of the drafted email
timestampstringTimestamp when draft was created
messagestringSuccess or error message

outlook_read

Read emails from Outlook

Input

ParameterTypeRequiredDescription
folderstringNoFolder ID to read emails from (default: Inbox)
maxResultsnumberNoMaximum number of emails to retrieve (default: 1, max: 10)
includeAttachmentsbooleanNoDownload and include email attachments

Output

ParameterTypeDescription
messagestringSuccess or status message
resultsarrayArray of email message objects
attachmentsfile[]All email attachments flattened from all emails

outlook_forward

Forward an existing Outlook message to specified recipients

Input

ParameterTypeRequiredDescription
messageIdstringYesThe ID of the message to forward
tostringYesRecipient email address(es), comma-separated
commentstringNoOptional comment to include with the forwarded message

Output

ParameterTypeDescription
messagestringSuccess or error message
resultsobjectDelivery result details

outlook_move

Move emails between Outlook folders

Input

ParameterTypeRequiredDescription
messageIdstringYesID of the message to move
destinationIdstringYesID of the destination folder

Output

ParameterTypeDescription
successbooleanEmail move success status
messagestringSuccess or error message
messageIdstringID of the moved message
newFolderIdstringID of the destination folder

outlook_mark_read

Mark an Outlook message as read

Input

ParameterTypeRequiredDescription
messageIdstringYesID of the message to mark as read

Output

ParameterTypeDescription
successbooleanOperation success status
messagestringSuccess or error message
messageIdstringID of the message
isReadbooleanRead status of the message

outlook_mark_unread

Mark an Outlook message as unread

Input

ParameterTypeRequiredDescription
messageIdstringYesID of the message to mark as unread

Output

ParameterTypeDescription
successbooleanOperation success status
messagestringSuccess or error message
messageIdstringID of the message
isReadbooleanRead status of the message

outlook_delete

Delete an Outlook message (move to Deleted Items)

Input

ParameterTypeRequiredDescription
messageIdstringYesID of the message to delete

Output

ParameterTypeDescription
successbooleanOperation success status
messagestringSuccess or error message
messageIdstringID of the deleted message
statusstringDeletion status

outlook_copy

Copy an Outlook message to another folder

Input

ParameterTypeRequiredDescription
messageIdstringYesID of the message to copy
destinationIdstringYesID of the destination folder

Output

ParameterTypeDescription
successbooleanEmail copy success status
messagestringSuccess or error message
originalMessageIdstringID of the original message
copiedMessageIdstringID of the copied message
destinationFolderIdstringID of the destination folder

Triggers

outlook_poller

Triggers when new emails are received in Outlook (requires Microsoft credentials)

Output

ParameterTypeDescription
email.idstringOutlook message ID
email.conversationIdstringOutlook conversation ID
email.subjectstringEmail subject line
email.fromstringSender email address
email.tostringRecipient email address
email.ccstringCC recipients
email.datestringEmail date in ISO format
email.bodyTextstringPlain text email body
email.bodyHtmlstringHTML email body
email.hasAttachmentsbooleanWhether email has attachments
email.attachmentsfile[]Array of email attachments as files (if includeAttachments is enabled)
email.isReadbooleanWhether email is read
email.folderIdstringOutlook folder ID where email is located
email.messageIdstringMessage ID for threading
email.threadIdstringThread ID for conversation threading
timestampstringEvent timestamp

Notes

  • Category: tools
  • Type: outlook
Outlook