Method ResolveFromAddress
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
ResolveFromAddress(string)
Gets the address a composed message is written from.
public string? ResolveFromAddress(string accountUserName)
Parameters
accountUserNamestringThe user name the account reads its mailbox with, which is a mailbox address on most providers.
Returns
- string
The configured sending address, the account's user name when it is one, or nothing when neither names a mailbox.
Remarks
The user name is the fallback for the reason the account's own domains are read from it: it is the only mailbox identity an account states, and a login without an at-sign states none. Inventing an address from the host would send mail from a mailbox nobody configured.