Method GetSettingsAsync
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
GetSettingsAsync(string, CancellationToken)
Gets submission settings for one local account identifier, resolving its password and trust anchor.
Task<SmtpAccountSettings> GetSettingsAsync(string accountId, CancellationToken cancellationToken)
Parameters
accountIdstringThe local account identifier.
cancellationTokenCancellationTokenCancels the secret resolution.
Returns
- Task<SmtpAccountSettings>
The settings, whose Material the caller owns and must dispose.
Remarks
The contract is asynchronous because secret resolution may reach a managed store; every scheme shipped today reads a local file or the environment block.
Exceptions
- InvalidOperationException
Thrown when the account is not configured, or configures no submission endpoint.