activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Mar 19, 2025

Create Exchange Draft

UiPath.Mail.Exchange.Activities.CreateDraft

Creates an Exchange draft email message.

Configuring the activity

In the body of the activity
  • To - The main recipients of the email message.
  • Subject - The subject of the email message.
  • Body - The body of the email message.
  • File path attachments - A list of string arguments that represent the attachments to be added to the email message.
  • File path attachment collection - An IEnumerable<String> object that specifies a list of files that you want to attach.

Properties

Common
  • TimeoutMS - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).
Exchange settings
  • Server - The email server host that is to be used.
  • Exchange version - Specifies the lowest version of the Exchange server that is used. The options displayed in this field range from the 2007 to the 2013 version. Please note that the version number indicates the lowest level of service you support. This means that if you have a 2016 exchange server, you can select the Exchange2013 option.
  • Email autodiscover - Searches automatically for an Exchange server by using an email address from that server. This works only if the Exchange server has Autodiscover enabled.
Forward
  • Mail message - The message to be forwarded. This field only supports MailMessage objects.
Logon
  • Domain - The Active Directory domain to connect to.
  • User - The username of the Exchange account used to send the message.
  • Password - The password of the Exchange account used to send the message.
  • Secure password - The password of the Exchange account used, as a secure string.
Office 365 settings
  • Application id - The ID of your Azure Active Directory Application. This field supports only strings and String variables.
  • Authentication type - The authentication options for Office 365. The available options are:
    • UserNameAndPassword - Standard Username and Password Login.

      Important: The ApplicationID property is required when selecting UserNameAndPassword authentication. This ensures ROPC authentication is used instead of basic authentication, which has been deprecated in Exchange online.
    • Interactive - Interactive Token (Auth 2.0).
    • Windows Integrated - Integrated Windows Authentication.
  • Directory id - The ID of your Azure Active Directory. This field supports only strings and String variables.
Receiver
  • CC - The secondary recipients of the email message.
  • BCC - The hidden recipients of the email message.
Sender
  • From - The email address of the sender.
  • Name - The display name of the sender.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
© 2005-2025 UiPath. All rights reserved.