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

Productivity activities

Last updated Feb 19, 2026

ImapConnectionOptions

Options used to connect to the IMAP mail server.

Namespace: UiPath.Mail.Activities.Api

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

Inheritance: System.Object > MailConnectionOptions > ImapConnectionOptions

Constructor

Initializes a new instance of the ImapConnectionOptions class.

Namespace: UiPath.Mail.Activities.Api

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

ImapConnectionOptions (string, int)

public ImapConnectionOptions(
	string server,
	int port
)
public ImapConnectionOptions(
	string server,
	int port
)

server String : The email server host to use.

port Int32 : The port used to connect.

Properties

PropertyTypeDescription
ClientNamestringThe Name property of the IMAP client implementation.
ClientVersionstringThe Version property of the IMAP client implementation.
EmailstringInherited from MailConnectionOptions.
IgnoreCRLboolInherited from MailConnectionOptions.
PasswordstringInherited from MailConnectionOptions.
PortintInherited from MailConnectionOptions.
SecureConnectionSecureSocketEncryptionInherited from MailConnectionOptions.
ServerstringInherited from MailConnectionOptions.
UseOAuthboolInherited from MailConnectionOptions.

Methods

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

WithClient

Set the ClientName and ClientVersion properties of the IMAP client implementation.

Namespace: UiPath.Mail.Activities.Api

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

WithClient(string, string)
public ImapConnectionOptions WithClient(
	string name,
	string version
)
public ImapConnectionOptions WithClient(
	string name,
	string version
)

name String : The Name property of the IMAP client implementation.

version String : The Version property of the IMAP client implementation.

Return Value

ImapConnectionOptions : Returns an updated instance of ImapConnectionOptions.

WithClientName

Set the ClientName property of the IMAP client implementation.

Namespace: UiPath.Mail.Activities.Api

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

WithClientName(string)
public ImapConnectionOptions WithClientName(
	string name
)
public ImapConnectionOptions WithClientName(
	string name
)

name String : The Name property of the IMAP client implementation.

Return Value

ImapConnectionOptions : Returns an updated instance of ImapConnectionOptions.

WithClientVersion

Set the ClientVersion property of the IMAP client implementation.

Namespace: UiPath.Mail.Activities.Api

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

WithClientVersion(string)
public ImapConnectionOptions WithClientVersion(
	string version
)
public ImapConnectionOptions WithClientVersion(
	string version
)

version String : The Version property of the IMAP client implementation.

Return Value

ImapConnectionOptions : Returns an updated instance of ImapConnectionOptions.

  • Constructor
  • ImapConnectionOptions (string, int)
  • Properties
  • Methods
  • WithClient
  • WithClientName
  • WithClientVersion

Was this page helpful?

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