Class SmtpAccountSettings
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
Contains validated SMTP endpoint and credential settings for one configured account.
public sealed record SmtpAccountSettings : IEquatable<SmtpAccountSettings>
- Inheritance
-
SmtpAccountSettings
- Implements
- Inherited Members
Remarks
It is a separate record from ImapAccountSettings rather than a shared one, because a mailbox provider almost never serves both protocols on one endpoint and the two are resolved for different operations. Connection security and permitted authentication mechanisms are deliberately absent here for the same reason they are absent there: they travel with the account's transport security policy, which the caller hands to the session factory. The synthesized ToString() is safe only because MailAccountConnectionMaterial redacts its password.
Constructors
- SmtpAccountSettings(string, string, int, string, MailAccountConnectionMaterial)
Contains validated SMTP endpoint and credential settings for one configured account.
Properties
- AccountId
The normalized local account identifier.
- Host
The submission server host name.
- Material
The password and trust anchor this account's delivery resolved. This record is a carrier and does not own them: the operation that requested the settings owns the material and must dispose it when it ends.
- Port
The submission server port.
- UserName
The submission user name, which stays a plain configuration value because it is an identifier rather than a credential.