Method FindOutgoingContentAsync
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
FindOutgoingContentAsync(OutgoingEmailId, CancellationToken)
Reads back the raw MIME stored for one outgoing email, with what was recorded about it.
Task<StoredEmailContent?> FindOutgoingContentAsync(OutgoingEmailId outgoingEmailId, CancellationToken cancellationToken)
Parameters
outgoingEmailIdOutgoingEmailIdThe record of the send.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<StoredEmailContent>
The stored content, or null when no content is stored for that record.
Remarks
This is what an attempt transmits, including a retry, which is what keeps a resumed send the same message rather than a second one that looks like it. Absent content is a defect here rather than an ordinary answer, unlike the incoming read: an outgoing record is written together with its message, so a record without one describes a send that can never happen — and the caller is the one that decides what to do about that.