make sure that the name of the multiple select list ends with "[]", for example:
<select name="toAddresses[]" size="5" multiple="multiple" id="toAddresses">
<option value="one@domain.com">email one</option>
<option value="two@domain.com">email two</option>
<option value="three@domain.com">email three</option>
<option value="four@domain.com">email four</option>
<option value="five@domain.com">email five</option>
</select>
In universal email, when you bind to the email address form element, it will include the "[]} in the binding code:
<?php echo((isset($_POST["toAddresses[]"]))?$_POST["toAddresses[]"]:"") ?>
these should be removed from the binding code:
<?php echo((isset($_POST["toAddresses"]))?$_POST["toAddresses"]:"") ?>
then add the following code at line 1:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>