MailAddress Constructor
Namespace: Rebex.Mime.Headers
Assembly: Rebex.Mail.dll (version 7.0.9119)
MailAddress(String)
Initializes a new instance of MailAddress header value with the specified mail address.
Declaration
public MailAddress(string address)
Parameters
Type | Name | Description |
---|---|---|
String | address | Mail address and (optionally) display name. Typically 'name.surname@company.net' or 'Name Surname <name.surname@company.net>' or '"Name Surname" <name.surname@company.net>'. |
MailAddress(String, Boolean)
Initializes a new instance of MailAddress header value with the specified mail address.
Declaration
public MailAddress(string address, bool omitBrackets)
Parameters
Type | Name | Description |
---|---|---|
String | address | Mail address and (optionally) display name. Typically 'name.surname@company.net' or 'Name Surname <name.surname@company.net>' or '"Name Surname" <name.surname@company.net>'. |
Boolean | omitBrackets | Setting to true omits the angle brackets when encoding the email address. |
MailAddress(String, String)
Initializes a new instance of MailAddress header value with the specified mail address and display name.
Declaration
public MailAddress(string address, string displayName)
Parameters
Type | Name | Description |
---|---|---|
String | address | Mail address. |
String | displayName | Display name. |