MailAddress Class
Namespace: Rebex.Mime.Headers
Assembly: Rebex.Mail.dll (version 7.0.9313)
Represents a mailbox that consists of address and a display name.
Syntax
public class MailAddress : IHeader
Implements
Inherited Members
Remarks
Represents the mailbox structured header defined by RFC 2822.
Constructors
| Name | Description |
|---|---|
| MailAddress(String) | Initializes a new instance of MailAddress header value with the specified mail address. |
| MailAddress(String, Boolean) | Initializes a new instance of MailAddress header value with the specified mail address. |
| MailAddress(String, String) | Initializes a new instance of MailAddress header value with the specified mail address and display name. |
Properties
| Name | Description |
|---|---|
| Address | Gets the mail address of this mailbox. |
| DisplayName | Gets the display name of this mailbox. |
| Host | Gets the domain of this mailbox. |
| User | Gets the local part of this mailbox. |
Methods
| Name | Description |
|---|---|
| Clone() | Creates a copy of the header. |
| Encode(TextWriter) | Writes an encoded header value into a TextWriter. |
| ToString() | Converts the value of this header to its String representation. |
Operators
| Name | Description |
|---|---|
| Implicit(String to MailAddress) | Converts a String to a MailAddress. |