• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SmtpDeliveryResult

The result of a single Send(MimeMessage) operation. Immutable.

Inheritance
object
SmtpDeliveryResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpDeliveryResult

Constructors

View Source

SmtpDeliveryResult(bool, SmtpResponse?, IReadOnlyList<SmtpRecipientResult>, Exception?)

Initializes a new instance of the SmtpDeliveryResult class.

Declaration
public SmtpDeliveryResult(bool success, SmtpResponse? response, IReadOnlyList<SmtpRecipientResult> recipients, Exception? error)
Parameters
Type Name Description
bool success
SmtpResponse response
IReadOnlyList<SmtpRecipientResult> recipients
Exception error

Properties

View Source

EnhancedStatusCode

Gets the enhanced status code (RFC 3463, e.g. 2.0.0, 5.1.1) from the final server response, or null if the server did not provide one or DATA was not reached. This is a convenience accessor for Response!.EnhancedStatusCode.

Declaration
public string? EnhancedStatusCode { get; }
Property Value
Type Description
string
View Source

Error

Gets the transport or protocol exception that caused the failure, or null if the delivery completed without an exception.

Declaration
public Exception? Error { get; }
Property Value
Type Description
Exception
View Source

Recipients

Gets the per-recipient results from the RCPT TO commands.

Declaration
public IReadOnlyList<SmtpRecipientResult> Recipients { get; }
Property Value
Type Description
IReadOnlyList<SmtpRecipientResult>
View Source

Response

Gets the final server response (the reply to the DATA command's message body), or null if DATA was not reached.

Declaration
public SmtpResponse? Response { get; }
Property Value
Type Description
SmtpResponse
View Source

Success

Gets a value indicating whether the message was accepted for delivery by the server.

Declaration
public bool Success { get; }
Property Value
Type Description
bool

Methods

View Source

ToString()

Returns the string representation of this result.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX