<td>Email:</td> <td>' . $fields['email']->val . '</td> </tr> <tr> <td>Recapito telefonico:</td> <td>' . $fields['telefono']->val . '</td> </tr> <tr> <td>Messaggio:</td> <td>' . nl2br(utf8_decode($fields['msg']->val)) . '</td> </tr> </table> <h4 style="border-top:2px dashed #CCC">ATTENZIONE! Non rispondere a questa email. Copiare l\'indirizzo lasciato dal cliente nel messaggio</h4>'; $mailer = new mailer(HOST, PORT, USER, PASS, NAME); // $mailer->inviaMail('*****@*****.**',"Richiesta da contatti (".strtoupper($_SESSION['lang']['label']).")",$msg); $mailer->inviaMail('*****@*****.**', "Richiesta da contatti (" . strtoupper($_SESSION['lang']['label']) . ")", $msg); $mailer->logoutSMTP(); $_SESSION['err_mail'] = 0; header("Location: " . $_SERVER['REQUEST_URI']); exit; } ?> <?php include TPL_HEADER; ?> <section class="pageContent"> <?php include_once TPL_TITLE; ?> <div class="wrapperCatalog black"> <div class="container">
$smarty->assign('spedizione', 0); $smarty->assign('pagamento', $mp); $smarty->assign('promozioni', $lang['prev']['promotions']); $smarty->assignByRef("dati", $clt); $smarty->assign('dir', DIR2); //MAIL A CLIENTE $msg = $smarty->fetch('mail/' . $_SESSION['lang']['label'] . '/clt-ordine.html'); //messaggio cliente $mailer = new mailer(HOST, PORT, USER, PASS, NAME); $mailer->inviaMail($clt->fields['email'], "Ordine concluso - Ceramiche Sofia", $msg); $mailer->logoutSMTP(); //MAIL A NEGOZIO $msg2 = $smarty->fetch('mail/' . $_SESSION['lang']['label'] . '/info-ordine.html'); //messaggio negozio $mailer = new mailer(HOST, PORT, USER, PASS, NAME); $mailer->inviaMail('*****@*****.**', "Hai ricevuto un ordine", $msg2); $mailer->logoutSMTP(); } else { header("Location: ./?nonverificato"); exit; } } else { header("Location: ./?noninviato"); exit; } ?> <?php include TPL_HEADER; ?> <section class="pageContent">