For the complete documentation index, see llms.txt. This page is also available as Markdown.

ReadEmail

Read Microsoft Exchange emails and downloading their attachments.

Task version: 1.5.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

AuthenticationProvider : AuthenticationProviders

Specifies the type of authentication provider to use for the connection.

Possible values:

  • ClientCredentialsCertificate: Specifies the type of authentication provider to use for the connection.

  • ClientCredentialsSecret: Specifies the type of authentication provider to use for the connection.

  • UsernamePassword: Specifies the type of authentication provider to use for the connection.

Default: 2 Example: AuthenticationProviders.UsernamePassword

X509CertificateFilePath : String

Specifies the path to a file that contains both the client certificate and private key.

Default: - Example: C:\Certificates\mycert.pfx

🗝ClientSecret : String

Specifies the secret key of the client application.

Default: - Example: Y2lzY29zeXN0ZW1zOmMxc2Nv

Username : String

Specifies the username of the user.

Default: - Example: johndoe@example.com

🗝Password : String

Specifies the password of the user.

Default: - Example: SecurePassword123

ClientId : String

Specifies the app ID for fetching an access token.

This is the unique identifier for your application.

Default: - Example: 4a1aa1d9-c16a-40a2-bd7d-2bd40babe4ff

TenantId : String

Specifies the tenant ID for fetching an access token.

This is the unique identifier of your Azure AD tenant.

Default: - Example: 9188040d-6c67-4c5b-b112-36a304b66dad

Mailbox : String

Mailbox from where the emails will be read.

If empty and using UsernamePassword authentication, the authenticated user's mailbox will be used.

If empty and using ClientCredentials authentication, Input.From will be used as fallback.

Default: - Example: johndoe@example.com

Task Result

Name
Description

Success : Boolean

Gets a value indicating whether the task was executed successfully. Example: true

Data : List<ResultObject>

Gets the result of the task. Contains exception message if exception was thrown and Options.ThrowExceptionOnFailure = false. Example: { "AAMkADIxYTJiZDIz", "C:\temp\file.txt", 6000, "#microsoft.graph.fileAttachment", "This is content." }

ErrorMessages : List<Object>

Error messages. Example: { "error occured", "another error occured." }

Task Changelog

Changelog for Task Frends.Exchange.ReadEmail.

[1.5.0] - 2026-05-07

Added

  • Added Mailbox parameter to Connection to allow reading emails from a mailbox different than the authenticated user. For UsernamePassword authentication, if Mailbox is empty, the authenticated user's mailbox is used. For ClientCredentials authentication, if Mailbox is empty, Input.From is used as fallback.

[1.4.0] - 2026-03-20

Added

  • Added DeleteReadEmails option to permanently delete emails after they are read and processed.

[1.3.0] - 2025-10-17

Changed

  • Changed ClientSecret to a password property.

[1.2.0] - 2024-08-22

Changed

  • Updated the Azure.Identity, Newtonsoft.Json and Mimekit libraries to their latest versions.

[1.1.0] - 2023-05-24

Fixed

  • Skip parameter is null instead of zero when it is not supported

[1.0.0] - 2023-05-12

Added

  • Initial implementation

Last updated

Was this helpful?