Table of Contents

Class MailAccountDeliveryOptions

Namespace
MailFathom.Infrastructure.Mail
Assembly
MailFathom.Infrastructure.dll

Binds where one account's mail is submitted, separately from where it is read.

public sealed class MailAccountDeliveryOptions
Inheritance
MailAccountDeliveryOptions
Inherited Members

Remarks

It is a block of its own beside MailAccountTransportSecurityOptions and MailAccountSecretOptions because a mailbox provider almost never serves reading and submission on one endpoint: the host and the port differ, and so does the connection security that reaches them, since implicit TLS on the reading endpoint sits beside STARTTLS on the submission one across most providers. What does not differ is the account: the permitted mechanisms, the accepted weakenings, and the certificate authority stay the account's single decision, and the credential is the same one unless this block names another.

The block is optional. An account that omits it configures no submission endpoint, which is an ordinary shape rather than a misconfiguration, and no delivery session can be opened for it. An account that names a host has its whole block validated at startup, so an unsafe or incomplete endpoint is refused there rather than discovered at the moment something tries to send.

Properties

ConnectionSecurity

Gets or sets how the connection to the submission server is encrypted.

Enabled

Gets or sets whether this deployment may send as this account at all.

FileSentCopy

Gets or sets whether a copy of each delivered message is put into this account's sent folder.

FromAddress

Gets or sets the address this account's mail is written from, or nothing to send from its own user name.

FromDisplayName

Gets or sets the name written beside the sending address, or nothing to write the address alone.

Host

Gets or sets the submission server host name, whose presence is what configures the endpoint.

IsConfigured

Gets whether this account configures a submission endpoint at all.

Port

Gets or sets the submission server port.

Secrets

Gets or sets the submission credential, or nothing to present the account's reading credential.

UserName

Gets or sets the submission user name, or nothing to authenticate as the account's reading user name.

Methods

ResolveFromAddress(string)

Gets the address a composed message is written from.

ResolveSecrets(MailAccountSecretOptions?)

Gets the secret block a submission connection resolves its password from.

ResolveUserName(string)

Gets the user name a submission connection authenticates with.