
codigo php no funciona
Publicado por jose maria (45 intervenciones) el 01/07/2014 19:28:31
hola, ¿por que no funciona este codigo? (deve enviarme un mail)
gracias
gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$to='mio@gmail.com';
$from_user='yo';
$from_email='otro@hotmail.com';
$subject = '';
$message = '';
function mail_utf8($to, $from_user, $from_email,
$subject = '(No subject)', $message = '')
{
$from_user = "=?UTF-8?B?".base64_encode($from_user)."?=";
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
$headers = "From: $from_user <$from_email>\r\n".
"MIME-Version: 1.0" . "\r\n" .
"Content-type: text/html; charset=UTF-8" . "\r\n";
return mail($to, $subject, $message, $headers);
}
?>
Valora esta pregunta


0