Code
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
protected function compileRecipients($arrRecipients)
{
$arrReturn = array();
foreach ($arrRecipients as $varRecipients)
{
if (!is_array($varRecipients))
{
$varRecipients = \String::splitCsv($varRecipients);
}
foreach ($varRecipients as $v)
{
list($strName, $strEmail) = \String::splitFriendlyEmail($v);
$strName = trim($strName, ' "');
$strEmail = \Idna::encodeEmail($strEmail);
if ($strName != '')
{
$arrReturn[$strEmail] = $strName;
}
else
{
$arrReturn[] = $strEmail;
}
}
}
return $arrReturn;
}