Table of Contents

Method Create

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

Create(MailAccountId, EmailAddress)

Names who one account sends as.

public static OutgoingSenderIdentity Create(MailAccountId accountId, EmailAddress address)

Parameters

accountId MailAccountId

The account the identity belongs to.

address EmailAddress

The address its mail is written from.

Returns

OutgoingSenderIdentity

The identity those two name.

Remarks

The address is checked rather than assumed, because a default EmailAddress carries none at all and would compose a message written from nobody. What guarantees the domain exists is the same check: an address this type accepts has one.

Exceptions

ArgumentException

Thrown when address names no mailbox.