Enum AuthoredEmailRefusalReason
- Namespace
- MailFathom.Application.Mail.Delivery.Composition
- Assembly
- MailFathom.Application.dll
States what stopped a message from being composed.
public enum AuthoredEmailRefusalReason
Fields
BoundExceeded = 4The message exceeds a bound the deployment configured or the submission server advertised.
FieldUnusable = 2An author-supplied field carries a value no message can be composed from, such as an address naming no mailbox.
HeaderInjected = 1An author-supplied field carries a line break, which would smuggle a header nobody wrote.
InternationalizationUnsupported = 3An address outside ASCII was addressed to a server that carries none.
SenderUnconfigured = 0The sending account configures no address to send from.
Remarks
Composing is decided entirely from what the author wrote, the account's configuration, and what the submission server advertised, so every way it can end badly is one of these — which is what lets a caller act on the answer rather than translate an exception. A failure this does not name is a defect: a composer that cannot build a message it accepted has a fault of its own and raises rather than refuses.