Class SmtpRecipientResult
The result of a single RCPT TO command within a message
delivery. Immutable.
Inherited Members
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpRecipientResult
Constructors
View SourceSmtpRecipientResult(string, bool, SmtpResponse?)
Initializes a new instance of the SmtpRecipientResult class.
Declaration
public SmtpRecipientResult(string address, bool accepted, SmtpResponse? response)
Parameters
| Type | Name | Description |
|---|---|---|
| string | address | The recipient email address. |
| bool | accepted | Whether the server accepted the recipient. |
| SmtpResponse | response | The server reply to the RCPT TO command, or null. |
Properties
View SourceAccepted
Gets a value indicating whether the server accepted the recipient.
Declaration
public bool Accepted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Address
Gets the recipient email address.
Declaration
public string Address { get; }
Property Value
| Type | Description |
|---|---|
| string |
Response
Gets the server reply to the RCPT TO command, or null if no reply was received.
Declaration
public SmtpResponse? Response { get; }
Property Value
| Type | Description |
|---|---|
| SmtpResponse |
Methods
View SourceToString()
Returns the string representation of this result.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |