Initializes a new instance of MailAddress header value
with the specified mail address.
Namespace:
Rebex.Mime.Headers
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ address As String, _ omitBrackets As Boolean _ ) |
C# |
---|
public MailAddress( string address, bool omitBrackets ) |
Parameters
- address
- Type: System..::..String
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>'.
- omitBrackets
- Type: System..::..Boolean
Setting to true omits the angle brackets when encoding the email address.