Method Create
- Namespace
- MailFathom.Domain.Delivery
- Assembly
- MailFathom.Domain.dll
Create(EmailAddress, OutgoingRecipientRole, ContactId?)
Names one recipient of an outgoing email.
public static OutgoingRecipient Create(EmailAddress address, OutgoingRecipientRole role, ContactId? contact = null)
Parameters
addressEmailAddressThe address the message is offered to.
roleOutgoingRecipientRoleThe header the composed message names them in.
contactContactId?The contact the address was resolved from, or null when the author supplied it.
Returns
- OutgoingRecipient
The recipient those name.
Exceptions
- ArgumentException
Thrown when
addressnames no mailbox or is longer than MaximumAddressLength.- ArgumentOutOfRangeException
Thrown when
roleis not a declared role.