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

MailConnectionOptions

Options used to connect to the mail server.

Namespace: UiPath.Mail.Activities.Api

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

Constructors

ConstructorDescriptionSyntax
MailConnectionOptionsInitializes a new instance of the MailConnectionOptions class.
public class MailConnectionOptionspublic class MailConnectionOptions

Properties

NameTypeDescription
EmailstringThe email account used to send or retrieve the email messages.
IgnoreCRLboolWhether to ignore the Certificate Revocation List validation when connecting.
Passwordstring

The password of the email account used to get the message.

If UseOAuth is set to true, the value of this parameter must be an OAuth2 access token.

PortintThe port used to send or retrieve the email messages.
SecureConnectionSecureSocketEncryptionThe SSL and/or TLS encryption to be used for the connection.
ServerstringThe email server host to use.
TimeoutintThe number of milliseconds to wait before the connection breaks.
UseOAuthboolWhether to use an OAuth2 access token instead of a password.

MailConnectionOptions Methods

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

WithEmail

Sets the Email property.

Namespace: UiPath.Mail.Activities.Api

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

WithEmail(string)

public MailConnectionOptions WithEmail(
	string email
)public MailConnectionOptions WithEmail(
	string email
)
email String
The email account used to send or retrieve the email messages.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithIgnoreCRL

Sets the IgnoreCRL property.

Namespace: UiPath.Mail.Activities.Api

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

WithIgnoreCRL(boolean)

public MailConnectionOptions WithIgnoreCRL(
	bool ignoreCRL
)public MailConnectionOptions WithIgnoreCRL(
	bool ignoreCRL
)
ignoreCRL Boolean
Specifies whether to ignore the Certificate Revocation List validation when connecting.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithOAuth

Sets the UseOAuth property.

Namespace: UiPath.Mail.Activities.Api

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

WithOAuth(boolean)

public MailConnectionOptions WithOAuth(
	bool useOAuth
)public MailConnectionOptions WithOAuth(
	bool useOAuth
)
useOAuth Boolean
Set this to True if you want to use an OAuth2 access token instead of a password.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithPassword

Sets the Password property.

Namespace: UiPath.Mail.Activities.Api

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

WithPassword(string)

public MailConnectionOptions WithPassword(
	string password
)public MailConnectionOptions WithPassword(
	string password
)
password String
The password of the email account used to get the message. If UseOAuth is set to true, the value of this parameter must be an OAuth2 access token.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithPort

Sets the Port property.

Namespace: UiPath.Mail.Activities.Api

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

WithPort(int)

public MailConnectionOptions WithPort(
	int port
)public MailConnectionOptions WithPort(
	int port
)
port Int32
The port used to send or retrieve the email messages.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithSecureConnction

Sets the SecureConnection property.

Namespace: UiPath.Mail.Activities.Api

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

WithSecureConnection(SecureSocketEncryption)

public MailConnectionOptions WithSecureConnection(
	SecureSocketEncryption secureConnection
)public MailConnectionOptions WithSecureConnection(
	SecureSocketEncryption secureConnection
)
secureConnection SecureSocketEncryption
The SSL and/or TLS encryption to be used for the connection.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithServer

Sets the Server property.

Namespace: UiPath.Mail.Activities.Api

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

WithServer(string)

public MailConnectionOptions WithServer(
	string server
)public MailConnectionOptions WithServer(
	string server
)
server String
The email server host to use.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

WithTimeout

Sets the Timeout property.

Namespace: UiPath.Mail.Activities.Api

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

WithTimeout(int)

public MailConnectionOptions WithTimeout(
	int timeout
)public MailConnectionOptions WithTimeout(
	int timeout
)
timeout Int32
The number of milliseconds to wait before the connection breaks.

Return value

Returns an updated instance of MailConnectionOptions, that you can use to connect to a mail server.

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.