activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 15, 2024

GetMessagesAsync

Retrieves POP3 mail messages asynchronously.

Namespace: UiPath.Mail.Activities.Api

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

Overloads

OverloadDescription
GetMessagesAsync(GetPop3MailOptions, CancellationToken)Retrieves POP3 mail messages asynchronously with properties configured using the GetPop3MailOptions object.
GetMessagesAsync(GetMailOptions, CancellationToken)Retrieves POP3 mail messages asynchronously with additional options.
GetMessagesAsync()Retrieves POP3 mail messages asynchronously.

GetMessagesAsync(GetPop3MailOptions, CancellationToken)

Retrieves POP3 mail messages asynchronously with properties configured using the GetPop3MailOptions object.
Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetPop3MailOptions options,
	CancellationToken token
)Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetPop3MailOptions options,
	CancellationToken token
)
options GetPop3MailOptions
The options used to retrieve the email messages.
token CancellationToken
The token for the cancel operation.

GetMessagesAsync(GetMailOptions, CancellationToken)

Retrieve email messages asynchronously with additional options.

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetMailOptions options,
	CancellationToken token
)Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetMailOptions options,
	CancellationToken token
)
options GetMailOptions
Additional options to customize the retrieval of mails:
  • Top - The number of messages to retrieve starting from the top of the list.
token CancellationToken

The token for the cancel operation.

GetMessagesAsync(CancellationToken)

Retrieve email messages asynchronously.

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	CancellationToken token
)Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	CancellationToken token
)
token CancellationToken

The token for the cancel operation.

Return value

The retrieved messages as a collection of MailMessage objects.

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.