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
outgoingEmailIdOutgoingEmailIdThe record this submission belongs to.
senderEmailAddressThe address the envelope names as the reverse path.
recipientsIReadOnlyList<OutgoingRecipient>The people this attempt offers the message to.
rawMimeReadOnlyMemory<byte>The composed RFC 822 bytes to transmit.
Returns
- MailTransmissionRequest
The submission to issue.
Exceptions
- ArgumentNullException
Thrown when
recipientsis null.- ArgumentException
Thrown when
sendernames no mailbox, whenrecipientsis empty, or whenrawMimeis empty.