&mails=`["support@example.com", "sales@example.com"]`
&formTpl=`@CODE:<form> ...
<select name="mailTo" id="mailTo">
<option value="0" [+s.mailTo.0+]>Support</option>
<option value="1" [+s.mailTo.1+]>Sales</option>
</select>
... </form>`
&prepare=`selectmail`
selectmail snippet:
$mail = (int)$FormLister->getField('mailTo');
$mails = $FormLister->config->loadArray($FormLister->getCFGDef('mails'), '');
if(isset($mails[$mail])) {
$FormLister->mailConfig['to'] = $mails[$mail];
} else {
$FormLister->mailConfig['noemail'] = 1;
}