Class EmailDeliveryResult
The outcome of sending an email through the framework pipeline.
public sealed class EmailDeliveryResult
- Inheritance
-
EmailDeliveryResult
- Inherited Members
Properties
CompletedAt
The time at which the attempt finished.
public DateTimeOffset CompletedAt { get; }
Property Value
Details
A description of the outcome.
public string? Details { get; }
Property Value
Message
The message that was sent.
public EmailMessage Message { get; }
Property Value
ProviderResult
The result reported by the provider.
public ProviderDeliveryResult ProviderResult { get; }
Property Value
Status
The overall delivery status.
public EmailDeliveryStatus Status { get; }
Property Value
Succeeded
True when the configured provider accepted the message.
public bool Succeeded { get; }
Property Value
Methods
Failed(EmailMessage, ProviderDeliveryResult)
Creates a result for a message that failed all delivery attempts.
public static EmailDeliveryResult Failed(EmailMessage message, ProviderDeliveryResult providerResult)
Parameters
messageEmailMessageproviderResultProviderDeliveryResult
Returns
FailedValidation(EmailMessage, string)
Creates a result for a message that did not pass validation.
public static EmailDeliveryResult FailedValidation(EmailMessage message, string details)
Parameters
messageEmailMessagedetailsstring
Returns
Sent(EmailMessage, ProviderDeliveryResult)
Creates a successful result.
public static EmailDeliveryResult Sent(EmailMessage message, ProviderDeliveryResult providerResult)
Parameters
messageEmailMessageproviderResultProviderDeliveryResult