klyn.mails.InternetAddress.parse
method

    public static parse(value as String) as InternetAddress throws AddressException:

Description

Parses a single internet address.

Parameters

Parameter | Description
--- | ---
`value` | Raw mailbox or formatted header value.

Returns

Parsed address.

Throws

- AddressException when the mailbox is malformed.

Example

    import klyn.mails

    address = InternetAddress.parse("Ada <ada@example.com>")
    print(address.address)