Vanilla 1.1.10 es un producto de Lussumo. Para más información: Documentación, Soporte.
function codificaCorreo($email, $asunto, $cuerpo) {
global $emailSistema, $marca;
$from = '=?UTF-8?B?' . base64_encode($marca) . '?= <'.$emailSistema.'>';
$headers = array
(
'MIME-Version: 1.0',
'Content-Type: text/html; charset="UTF-8";',
'Content-Transfer-Encoding: 7bit',
'Date: ' . date('r', $_SERVER['REQUEST_TIME']),
'Message-ID: <' . $_SERVER['REQUEST_TIME'] . md5($_SERVER['REQUEST_TIME']) . '@' . $_SERVER['SERVER_NAME'] . '>',
'From: ' . $from,
'Reply-To: ' . $from,
'Return-Path: ' . $from,
'X-Mailer: PHP v' . phpversion(),
'X-Originating-IP: ' . $_SERVER['SERVER_ADDR'],
);
$subject = $asunto;
$body = $cuerpo;
$ok = mail($email, '=?UTF-8?B?' . base64_encode($subject) . '?=', $body, implode("\n", $headers));
}
$asunto="Mi asunto de pruebas";
$cuerpoo="Cuerpo del mensaje \n Otra línea \n Otra línea más";
1 a 4 de 4