MailAddressParser

The MailAddressParser function outputs the addresses or names parsed from the input mail header's address field (for example, the From, To, or CC fields).

Input

Number of Connections: Min: 1/Max:2
InputData TypeDescription
Input1StringThe address list.
Input2intSets the Offset property. (optional)

Output

OutputData TypeDescription
Output1StringThe list of names or addresses parsed from the input mail header's address field.

Property

NameProperty TypeDescription
Getchoice Specifies whether to output the list of names or addresses parsed from the input mail header's address field.

name - Output the list of names parsed from the input mail header's address field .
address - Output the list of addresses parsed from the input mail header's address field.
Offsetint

If the input mail header's address field data contains multiple addresses, this property specifies which single address, indexed from the beginning of the list, to output.
For example, if set to 1, the first address will be output. If set to 2, the second address will be output, and so forth.
If set to 0, all addresses will be output and separated by the specified Separator.

SeparatorstringIf Offset is set to 0, this property specifies the separator to be used to separate each output address.

Exception

Exceptions


Examples

PropertyOutput
Input1Joe Smith <jsmith@infoteria.com>, "Mary Grant" <mgrant@infoteria.com>GetnameMary Grant
Offset2
Separator,

PropertyOutput
Input1Joe Smith <jsmith@infoteria.com>, "Mary Grant" <mgrant@infoteria.com>Getaddressjsmith@infoteria.com,mgrant@infoteria.com
Offset0
Separator,