klyn.mails.InternetAddress.InternetAddress
constructor

    public InternetAddress(address as String, personal as String = "") throws AddressException:

Description

Creates an internet address.

Parameters

Parameter | Description
--- | ---
`address` | Raw mailbox or formatted header value.
`personal` | Optional display name override.

Throws

- AddressException when the mailbox is malformed.

Example

    import klyn.mails

    address = InternetAddress("user@example.com", "Demo User")
    print(address.toString())