Create Exchange Draft
UiPath.Mail.Exchange.Activities.CreateDraft
Creates an Exchange draft email message.
note
All UiPath® Exchange activities use Exchange Web Services (EWS), not Graph API. For details on the EWS deprecation, check the Microsoft documentation Deprecation of Exchange Web Services in Exchange Online.
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
MailMessageobjects.
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
Stringvariables. - 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.
- UserNameAndPassword - Standard Username and Password Login.
- Directory id - The ID of your Azure Active Directory. This field supports only strings and
Stringvariables.
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.