Activities
latest
false
Banner background image
Productivity Activities
Last updated Apr 26, 2024

SendOutlookMailOptions

Options used to send an SMTP email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

Inheritance: System.Object > .SendMailOptions > SendOutlookMailOptions

Properties

PropertyTypeDescription
AccountstringThe account used to send the message.
AttachmentsList<string>A list of files to send as attachments.
BccList<string>The hidden recipients of the email message.
BodystringThe body of the email message.
CcList<string>The secondary recipients of the email message.
ForwardedMessageMailMessageThe message to forward.
ImportanceMailImportanceSpecifies the importance of the email message.
IsBodyHtmlboolSpecifies whether the body of the message is written in HTML format.
IsDraftboolSpecifies whether the message should be saved as a draft.
ReplyToList<string>The email address to use when replying.
SenderMailstringThe email address of the sender.
SenderNamestringThe display name of the sender.
SensitivityMailSensitivitySpecifies the sensitivity of the mail message.
SubjectstringThe subject of the email message.
ToList<string>The main recipients of the email message.

SendOutlookMailOptions Methods

These are the methods you can use to configure mail options.

AsDraft

Sets the IsDraft property. Visit SendOutlookMailOptions to learn more about the properties of the SendOutlookMailOptions class.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

AsDraft(boolean)

public SendOutlookMailOptions AsDraft(
	bool isDraft
)public SendOutlookMailOptions AsDraft(
	bool isDraft
)
isDraft Boolean
Set to true if you want to save the message as a draft.

Return value

SendOutlookMailOptions

Returns an updated instance of SendOutlookMailOptions, that you use to send Outlook mail messages.

FromMailOptions

Creates a SendOutlookMailOptions object from a SendMailOptions object.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

FromMailOptions(SendMailOptions)

public static SendOutlookMailOptions FromMailOptions(
	SendMailOptions options
)public static SendOutlookMailOptions FromMailOptions(
	SendMailOptions options
)
options SendMailOptions
The SendMailOptions object used to create the SendOutlookMailOptions object.

Return value

SendOutlookMailOptions

The options used to send the Outlook email message.

OnBehalfOf

Sets the SentOnBehalfOfName property. Visit SendOutlookMailOptions to learn more about the properties of the SendOutlookMailOptions class.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

OnBehalfOf(string)

public SendOutlookMailOptions OnBehalfOf(
	string name
)public SendOutlookMailOptions OnBehalfOf(
	string name
)
name String
The display name of the sender of the mail message.

Return value

SendOutlookMailOptions

Returns an updated instance of SendOutlookMailOptions, that you use to send Outlook mail messages.

WithAccount

Sets the Account property. Visit SendOutlookMailOptions to learn more about the properties of the SendOutlookMailOptions class.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithAccount(string)

public SendOutlookMailOptions WithAccount(
	string account
)public SendOutlookMailOptions WithAccount(
	string account
)
account String
The account used to send the message.

Return value

SendOutlookMailOptions

Returns an updated instance of SendOutlookMailOptions, that you use to send Outlook mail messages.

WithAttachments

Set a list of files to send as attachments.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithAttachments(List<string>)

public SendOutlookMailOptions WithAttachments(
	List<string> attachments
)public SendOutlookMailOptions WithAttachments(
	List<string> attachments
)
attachments List<String>
The list of files to attach.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithBcc

Set the hidden recipients of the email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithBcc(List<string>)

public SendOutlookMailOptions WithBcc(
	List<string> bcc
)public SendOutlookMailOptions WithBcc(
	List<string> bcc
)
bcc List<String>
The list of hidden recipients.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithBody

Set the body of the email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithBody(string)

public SendOutlookMailOptions WithBody(
	string body
)public SendOutlookMailOptions WithBody(
	string body
)
body String
The body of the email message.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithCc

Set the secondary recipients of the email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithCc(List<string>)

public SendOutlookMailOptions WithCc(
	List<string> cc
)public SendOutlookMailOptions WithCc(
	List<string> cc
)
bcc List<String>
The list of secondary recipients.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithForwardedMessage

Set an email message to forward.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithForwardedMessage(MailMessage)

public SendOutlookMailOptions WithForwardedMessage(
	MailMessage forwardedMessage
)public SendOutlookMailOptions WithForwardedMessage(
	MailMessage forwardedMessage
)
forwardedMessage MailMessage
The email message to forward.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithForwardedMessage

Set whether the body of the message is written in HTML format.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithHtmlBody(bool)

public SendOutlookMailOptions WithHtmlBody(
	bool isBodyHtml
)public SendOutlookMailOptions WithHtmlBody(
	bool isBodyHtml
)
isBodyHtml Boolean
Whether the body of the message is written in HTML format.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithImportance

Sets the Importance property. Visit SendOutlookMailOptions to learn more about the properties of the SendOutlookMailOptions class.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithImportance(MailImportance)

public SendOutlookMailOptions WithImportance(
	MailImportance importance
)public SendOutlookMailOptions WithImportance(
	MailImportance importance
)
importance MailImportance
Specify the importance of the message. Choose one of the following values:
  • Low
  • Normal
  • High

Return value

SendOutlookMailOptions

Returns an updated instance of SendOutlookMailOptions, that you use to send Outlook mail messages.

WithReplyTo

Set the email addresses to use when replying.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithReplyTo(List<string>)

public SendOutlookMailOptions WithReplyTo(
	List<string> replyTo
)public SendOutlookMailOptions WithReplyTo(
	List<string> replyTo
)
replyTo List<String>
The list of email addresses to reply to.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithSensitivity

Sets the Sensitivity property. Visit SendOutlookMailOptions to learn more about the properties of the SendOutlookMailOptions class.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithSensitivity(MailSensitivity)

public SendOutlookMailOptions WithSensitivity(
	MailSensitivity sensitivity
)public SendOutlookMailOptions WithSensitivity(
	MailSensitivity sensitivity
)
sensitivity MailSensitivity
Specifies the sensitivity of the mail message. Choose one of the following values:
  • Normal
  • Personal
  • Private
  • Confidential

Return value

SendOutlookMailOptions

Returns an updated instance of SendOutlookMailOptions, that you use to send Outlook mail messages.

WithSubject

Set the subject of the email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithSubject(string)

public SendOutlookMailOptions WithSubject(
	string subject
)public SendOutlookMailOptions WithSubject(
	string subject
)
subject String
The subject of the email message.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

WithTo

Set the main recipients of the email message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

WithTo(List<string>)

public SendOutlookMailOptions WithTo(
	List<string> to
)public SendOutlookMailOptions WithTo(
	List<string> to
)
to List<String>
The list of main recipients.

Return Value

SendOutlookMailOptions
Returns an updated instance of SendOutlookMailOptions.

Was this page helpful?

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