Table of Contents

Method SubmitAsync

Namespace
MailFathom.Application.Mail.Delivery.Submission
Assembly
MailFathom.Application.dll

SubmitAsync(MailResponseSubmissionRequest, CancellationToken)

Queues one answer to a stored email, or refuses it naming what the caller has to change.

public Task<OutgoingEmailRecord> SubmitAsync(MailResponseSubmissionRequest request, CancellationToken cancellationToken)

Parameters

request MailResponseSubmissionRequest

The answer that was asked for.

cancellationToken CancellationToken

Cancels the reads and the write.

Returns

Task<OutgoingEmailRecord>

The durable record the answer was written down as, whether this call created it or an identical earlier one did.

Exceptions

ArgumentNullException

Thrown when request is null.

PrincipalNotAuthorizedException

Thrown when the caller holds neither MailSend nor, beneath it, MailRead.

MailSubmissionRefusedException

Thrown when the answered email cannot be answered, a recipient the author added names nobody, a field cannot be composed, or a bound is exceeded.

OutgoingMailRefusedException

Thrown when a recipient is one this deployment may not write to, when this caller has reached a ceiling of its own, or when a recipient it added itself is one nothing here vouches for.