toemailaddress() Function

Converts a value to email address.

Syntax

toemailaddress( value, … )

value: (Any Type) Value to convert.

Returns

Email Address

Notes

Can convert an email address Text.

When operating on arrays, it is not necessary to use apply with toemailaddress. If multiple parameters are passed, or one parameter is an Array, toemailaddress will return an Email Address Array.

The output can be converted to a value with an Email Recipient type for use in the To:, Cc:, or Bcc: field in the Setup tab of the Send Email Smart Service.

Examples

You can experiment with this function in the test box below.

Test Input

toemailaddress("john.doe@company.com") returns john.doe@company.com as an Email Address type.

toemailaddress("john.doe@company.com","jane.doe@company.com") and toemailaddress({"john.doe@company.com","jane.doe@company.com"}) both return {john.doe@company.com,jane.doe@company.com} as a List of Email Address type.

See Also

Send Email Smart Service: Use this smart service to send an email to one or more recipients.

FEEDBACK