Inbound email recipient processing

The recipients variables allow processing of inbound email based on the email recipients.

Table 1. Processing recipients in inbound email
Variable Action
email.recipents Returns a comma-separated list of recipient addresses as a plain text string.
email.recipients_array Returns the recipient addresses as an array.
For example, create a script to process email based on the array values:
var rarray  = email. recipients_array ; for ( var i  = 0 ; i  < rarray. length ; i ++ ) { var recipient  = rarray [i ] ; // do something with it }