Exchange

Frends.Exchange.ReadEmail / 1.5.0

Summary

Reads a mailbox through Microsoft Graph, optionally saving attachments to disk, and narrows what it fetches server-side by sender, filter and ordering rather than pulling everything down first.

Typical use — mail-triggered integrations, where filtering at the server is what keeps a busy mailbox from dominating the run

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Represents the parameters required to establish a connection.

Name Type Default Example Description
AuthenticationProvider AuthenticationProviders UsernamePassword AuthenticationProviders.UsernamePassword

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

Possible values:

  • ClientCredentialsCertificate: Select this if the authentication should be done using a client certificate. This requires a certificate file and private key.

  • ClientCredentialsSecret: Select this if the authentication should be done using a client secret. This requires a secret key from your application registration.

  • UsernamePassword: Select this if the authentication should be done using a username and password. This requires the username and password of the user.

X509CertificateFilePath String C:\Certificates\mycert.pfx

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

ClientSecretSecret String Y2lzY29zeXN0ZW1zOmMxc2Nv

Specifies the secret key of the client application.

Username String johndoe@example.com

Specifies the username of the user.

PasswordSecret String SecurePassword123

Specifies the password of the user.

ClientId String 4a1aa1d9-c16a-40a2-bd7d-2bd40babe4ff

Specifies the app ID for fetching an access token. This is the unique identifier for your application.

TenantId String 9188040d-6c67-4c5b-b112-36a304b66dad

Specifies the tenant ID for fetching an access token. This is the unique identifier of your Azure AD tenant.

Mailbox String johndoe@example.com

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.

An unhandled error has occurred. Reload 🗙