Class SmtpBatchResult
The result of a batch Send(IEnumerable{MimeMessage})
operation. Immutable.
Inherited Members
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpBatchResult
Constructors
View SourceSmtpBatchResult(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 SourceAborted
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 |
Failed
Gets the number of messages that failed.
Declaration
public int Failed { get; }
Property Value
| Type | Description |
|---|---|
| int |
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> |
Succeeded
Gets the number of messages successfully accepted for delivery.
Declaration
public int Succeeded { get; }
Property Value
| Type | Description |
|---|---|
| int |
Total
Gets the total number of messages in the batch.
Declaration
public int Total { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceToString()
Returns the string representation of this result.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |