Send an Email

Sends an email through Outlook with the specified details and attachments.

📘

Note: This operation is part of the Outlook Book (BDK). To use this book, you need to first learn it in your agent.

Note: It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send

Input Concepts

ConceptDescriptionTypeRequired
emailThe email to be sentoutlook emailYes
recipientsThe recipients of the emailtextYes
cc recipientsThe cc recipients of the emailtextNo
bcc recipientsThe bcc recipients of the emailtextNo
attachmentsThe attachments to be sent with the emailfileNo
userThe user sending the email. Required for client credentials, otherwise, the user is the authenticated user.office userNo

Examples

Send an email to the specified recipients

create a json
use the above as the email
set the email's subject to "Meeting Reminder"
set the email's body to "Don't forget the meeting tomorrow at 10:00 AM"
the recipients are "[email protected]", "[email protected]"
send the email to the recipients

Send an email to the specified recipients as a user

use the first user as the user
create a json
use the above as the email
set the email's subject to "Meeting Reminder"
set the email's body to "Don't forget the meeting tomorrow at 10:00 AM"
the recipients are "[email protected]", "[email protected]"
send the email to the recipients
	the user is the user

Send an email to the specified recipients with custom cc recipients

create a json
use the above as the email
set the email's subject to "Meeting Reminder"
set the email's body to "Don't forget the meeting tomorrow at 10:00 AM"
the recipients are "[email protected]", "[email protected]"
the cc recipients are "[email protected]", "[email protected]"
send the email to the recipients
	the cc recipients is the cc recipients

Send an email to the specified recipients with custom bcc recipients

create a json
use the above as the email
set the email's subject to "Meeting Reminder"
set the email's body to "Don't forget the meeting tomorrow at 10:00 AM"
the recipients are "[email protected]", "[email protected]"
the bcc recipients are "[email protected]", "[email protected]"
send the email to the recipients
	the bcc recipients is the bcc recipients

Send an email to the specified recipients with attachments

use the above as the file
use the above as the other file
the attachments are the file, the other file
create a json
use the above as the email
set the email's subject to "Meeting Reminder"
set the email's body to "Don't forget the meeting tomorrow at 10:00 AM"
the recipients are "[email protected]", "[email protected]"
send the email to the recipients
	the attachments is the attachments