Constructor DraftBlock
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
DraftBlock(PresentationEvidence, IReadOnlyList<EmailAddress>, PresentationText, PresentationText, DraftDisposition)
Initializes text to be sent.
public DraftBlock(PresentationEvidence evidence, IReadOnlyList<EmailAddress> recipients, PresentationText subject, PresentationText body, DraftDisposition disposition)
Parameters
evidencePresentationEvidenceWhat the correspondence does for the draft.
recipientsIReadOnlyList<EmailAddress>Who it is addressed to.
subjectPresentationTextIts subject.
bodyPresentationTextIts body, as plain text.
dispositionDraftDispositionWhat has become of it locally.
Exceptions
- ArgumentNullException
Thrown when
evidenceorrecipientsis null.- ArgumentException
Thrown when no recipient is named, there are more than MaxRecipients of them, a recipient is named twice, or a text is the unspecified default.