Send an Email

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

This procedure is part of the Microsoft Outlook Book (BDK). To use this book, you must first learn it in your agent.

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

Input Concepts

Concept
Description
Type
Required

email

The email to be sent

outlook email

Yes

recipients

The recipients of the email

text

Yes

cc recipients

The cc recipients of the email

text

No

bcc recipients

The bcc recipients of the email

text

No

attachments

The attachments to be sent with the email

file

No

user

The user sending the email. Required for client credentials, otherwise, the user is the authenticated user.

office user

No

Examples

  1. 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 "tomas@ms.kognitos.com", "john@acme.org"
send the email to the recipients
  1. 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 "tomas@ms.kognitos.com", "john@acme.org"
send the email to the recipients
	the user is the user
  1. 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 "tomas@ms.kognitos.com", "john@acme.org"
the cc recipients are "john@doe.com", "jane@doe.org"
send the email to the recipients
	the cc recipients is the cc recipients
  1. 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 "tomas@ms.kognitos.com", "john@acme.org"
the bcc recipients are "john@doe.com", "jane@doe.org"
send the email to the recipients
	the bcc recipients is the bcc recipients
  1. 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 "tomas@ms.kognitos.com", "john@acme.org"
send the email to the recipients
	the attachments is the attachments

Last updated

Was this helpful?