Excel Add-In for Microsoft Exchange

Build 25.0.9434

SendMail

Composes and sends a new email message using specified recipients, subject, body content, and optional attachments.

Input

Name Type Required Description
Id String False The identifier of an existing draft or message to be sent. This is optional. If not provided, a new email is created using the subject, content, recipients, and attachments specified.
Subject String False The subject line of the email message. Appears in the recipient's inbox as the main heading.
Content String False The body content of the email message. Can contain plain text or HTML depending on the specified content type.
Attachments String False The attachments to include in the email. Provide each attachment as a pair in this format: filename1,filecontent1; filename2,filecontent2. Each file content can be Base64-encoded data or a local file path prefixed with @.
FileName String False The name of a file to be attached to the email, if not using the full Attachments format.
LocalFile String False The path to a local file whose content will be used as an attachment. Useful when uploading directly from the file system.
ContentBytes String False The Base64-encoded binary content of the file attachment. Used when directly supplying the attachment content instead of a file path.
ToRecipients String False Semicolon-separated list of email addresses to whom the email will be sent directly. Example: [email protected]; [email protected].
CcRecipients String False Semicolon-separated list of email addresses to be copied (Cc) on the email. These recipients will be visible to all other recipients.
BccRecipients String False Semicolon-separated list of email addresses to be blind copied (Bcc) on the email. These recipients will not be visible to others.
SenderEmail String False The email address on whose behalf the message is sent. Use this when sending on behalf of another user.
FromEmail String False The actual sender's email address. This field is used when sending an email from another user's account explicitly.
UserId String False The identifier of the impersonated user under whose context the operation will be executed. Required for delegated access scenarios.
ContentType String False Specifies the format of the email body. Valid values typically include 'Text' or 'HTML'.

The allowed values are text, html.

The default value is text.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the email send operation was successful. Returns true if the email was sent successfully, false otherwise.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434