klyn.mails.InternetAddress.parse
method
public static parse(value as String) as InternetAddress throws AddressException:
Description

Parses a single internet address.

Parameters
  • value Raw mailbox or formatted header value.
Returns

Parsed address.

Throws
  • AddressException when the mailbox is malformed. ```klyn import klyn.mails address = InternetAddress.parse("Ada <ada@example.com>") print(address.address) ```