create a multiple select list that you can use to select the teams:
<select name="teams[]" size="5" multiple="multiple" id="teams">
<option value="Team1">Team1</option>
<option value="Team2">Team2</option>
<option value="Team3">Team3</option>
<option value="Team4">Team4</option>
<option value="Team5">Team5</option>
</select>
then create a recordset that will lookup the users by the selected, using the advanced recordset window, create the recordset as:
SELECT * FROM usersTable WHERE team IN(paramTeam)
create a new variable as:
name: paramTeam
Type: Text
Default Value: -1
Run Time Value: $_POST['teams']
this example recordset is using a table named "usersTable" and a column named "team", the example assumes the teams are stored in the team column using text values like "Team1", "Team1" etc.. You will need to make changes to use the correct table and column names and correct value.
Next, add the following code at line 1 to convert the multiple selections to a comma separated list:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>
then in universal email, click the to button to go to the advanced to settings page and set the to address to use a recordest loop