MailSendResult
The outcome of a send. Returned rather than thrown, so a caller can decide whether a failed notification should fail the operation around it. Only the package constructs one, so a result always describes an outcome that actually happened.
Fields
IsSuccess: bool
Whether the send succeeded. A false value does not always mean Resend declined it, since a send with no recipient fails before the provider is contacted.
MessageId: string?
Resend's identifier for the accepted message. Use it to correlate a send with a webhook or the Resend dashboard.
Error: string?
The failure description when the send did not succeed, carrying either this package's own rejection or the text the provider returned.
Type signature
csharp
public sealed record MailSendResult
{
public bool IsSuccess { get; }
public string? MessageId { get; }
public string? Error { get; }
}