klyn.mails.InternetAddress.parseList
method
public static parseList(value as String) as ArrayList<InternetAddress> throws AddressException:
Description

Parses a comma-separated list of addresses.

Parameters
  • value Header value containing one or more addresses.
Returns

Parsed address list.

Throws
  • AddressException when one address is malformed. ```klyn import klyn.mails values = InternetAddress.parseList("a@example.com, b@example.com") print(values.size) ```