Table of Contents

Method Create

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

Create(OutgoingEmailId, EmailAddress, IReadOnlyList<OutgoingRecipient>, ReadOnlyMemory<byte>)

States a submission to make.

public static MailTransmissionRequest Create(OutgoingEmailId outgoingEmailId, EmailAddress sender, IReadOnlyList<OutgoingRecipient> recipients, ReadOnlyMemory<byte> rawMime)

Parameters

outgoingEmailId OutgoingEmailId

The record this submission belongs to.

sender EmailAddress

The address the envelope names as the reverse path.

recipients IReadOnlyList<OutgoingRecipient>

The people this attempt offers the message to.

rawMime ReadOnlyMemory<byte>

The composed RFC 822 bytes to transmit.

Returns

MailTransmissionRequest

The submission to issue.

Exceptions

ArgumentNullException

Thrown when recipients is null.

ArgumentException

Thrown when sender names no mailbox, when recipients is empty, or when rawMime is empty.