InternetAddress
class in package klyn.mails

    public class InternetAddress extends Object:

Object
└ InternetAddress

Internet email address inspired by JavaMail `InternetAddress`.

The class accepts either a raw mailbox (`user@example.com`) or a formatted header value (`Ada Lovelace <ada@example.com>`).

    import klyn.mails

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

Fields

Modifier and Type | Member | Description
--- | --- | ---
public readonly | address `address as String` | Mailbox address, for example `user@example.com`.
public readonly | personal `personal as String` | Optional personal display name.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | mailbox `mailbox as String:` | Returns the SMTP envelope form (`user@example.com`).

Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | InternetAddress `InternetAddress(address as String, personal as String = "") throws AddressException:` | Creates an internet address.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | parse `parse(value as String) as InternetAddress throws AddressException:` | Parses a single internet address.
public static | parseList `parseList(value as String) as ArrayList<InternetAddress> throws AddressException:` | Parses a comma-separated list of addresses.
public override | toString `toString() as String:` | Returns the RFC 5322 header form.

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml