function buildAudioPlay($selectedLanguage, $inbox, $item, $message, $from, $to, $withSubject, $theDay)
{
    $audioPlayText = '';
    $audioPlayText .= $message . ' ';
    if (isset($inbox)) {
        $audioPlayText .= $from . ': ';
    } else {
        $audioPlayText .= $to . ': ';
    }
    if (isset($item['From'])) {
        $audioPlayText .= normalizeEmail($item['From']);
    } else {
        $audioPlayText .= normalizeEmail($item['To']);
    }
    $audioPlayText .= ', ' . $withSubject . ': ';
    $audioPlayText .= str_replace('#', '', str_replace('"', '', $item['Subject']));
    if (strcmp($selectedLanguage, 'es') == 0) {
        $audioPlayText .= ' ' . $theDay . ' ' . $item['DateAudioES'];
    } else {
        if (strcmp($selectedLanguage, 'en') == 0) {
            $audioPlayText .= ' ' . $theDay . ' ' . $item['DateAudioEN'];
        }
    }
    return $audioPlayText;
}
            </div>
        </div>


        <hr class='barra'>

        <div>

            <p><?php 
echo '<strong>' . $lang['FROM'] . ':</strong> ' . normalizeEmail($vars['Mail']['From']);
?>
 </p>
            <hr class='barra' />

            <p><?php 
echo '<strong>' . $lang['TO'] . '</strong>: ' . normalizeEmail($vars['Mail']['To']);
?>
 </p>
            <hr class='barra' />


            <p><strong><?php 
echo $lang['SUBJECT'];
?>
:</strong> <?php 
echo $vars['Mail']['Subject'];
echo isset($vars['Mail']['attachments']) ? '<img class="icono" src="' . $helper->urlBase() . '/public/img/icons/clip.png" alt="Clip" />' : '';
?>
</p>
            <hr class='barra'>
            <p><strong><?php 
Example #3
0
function normalize(array &$fields)
{
    normalizeEmail($fields[F_EMAIL]);
    normalizeAddrStreet($fields[F_ADDR_STREET]);
    normalizeAddrState($fields[F_ADDR_STATE]);
}