Table of Contents

Class EmailException

Namespace
MailForge.Models
Assembly
MailForge.dll

The exception thrown by providers and by the framework when an email cannot be sent. IsTransient distinguishes retryable failures (timeouts, rate limits, temporary service errors) from permanent ones (bad credentials, invalid addresses).

public class EmailException : Exception, ISerializable
Inheritance
EmailException
Implements
Inherited Members

Constructors

EmailException(string, bool)

Creates an exception.

public EmailException(string message, bool isTransient = false)

Parameters

message string
isTransient bool

EmailException(string, Exception, bool)

Creates an exception wrapping an inner exception.

public EmailException(string message, Exception innerException, bool isTransient = false)

Parameters

message string
innerException Exception
isTransient bool

Properties

IsTransient

True when the failure is transient and a retry may succeed.

public bool IsTransient { get; }

Property Value

bool