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

Class SmtpBatchResult

The result of a batch Send(IEnumerable{MimeMessage}) operation. Immutable.

Inheritance
object
SmtpBatchResult
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 SmtpBatchResult

Constructors

View Source

SmtpBatchResult(int, int, int, IReadOnlyList<SmtpDeliveryResult>, bool)

Initializes a new instance of the SmtpBatchResult class.

Declaration
public SmtpBatchResult(int total, int succeeded, int failed, IReadOnlyList<SmtpDeliveryResult> results, bool aborted)
Parameters
Type Name Description
int total

Specifies the total value.

int succeeded

Specifies the succeeded value.

int failed

Specifies the failed value.

IReadOnlyList<SmtpDeliveryResult> results

Specifies the results value.

bool aborted

Whether the batch was aborted early due to a fatal transport error or a 421 (service not available) response.

Properties

View Source

Aborted

Gets a value indicating whether the batch was aborted early due to a fatal transport error or a 421 (service not available) response. When true, Results contains only the messages processed before the abort.

Declaration
public bool Aborted { get; }
Property Value
Type Description
bool
View Source

Failed

Gets the number of messages that failed.

Declaration
public int Failed { get; }
Property Value
Type Description
int
View Source

Results

Gets the per-message delivery results, in the order the messages were supplied.

Declaration
public IReadOnlyList<SmtpDeliveryResult> Results { get; }
Property Value
Type Description
IReadOnlyList<SmtpDeliveryResult>
View Source

Succeeded

Gets the number of messages successfully accepted for delivery.

Declaration
public int Succeeded { get; }
Property Value
Type Description
int
View Source

Total

Gets the total number of messages in the batch.

Declaration
public int Total { get; }
Property Value
Type Description
int

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