
28/01/2004, 10:29
|
 | | | Fecha de Ingreso: octubre-2003 Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 21 años, 4 meses Puntos: 11 | |
que servidor de correo estas usando?
como lo tienes configurado?
mira este codigo:
I recently had to spend a lot of time finetuning a function for mail() which would work properly on both Linux and Win32 server. Here's the wrapper function, which should solve all (or most) of the common problems that beginners run into:
function send_mail($myname, $myemail, $contactname, $contactemail, $subject, $message) {
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$myname."\" <".$myemail.">\n";
return(mail("\"".$contactname."\" <".$contactemail.">", $subject, $message, $headers));
}
This has been tested with both Linux (qmail) and Win32 (ezmts) mail servers, and worked perfectly well. Note that the two headers "X-Priority" and "X-MSMail-Priority", can be left out - but they will help overcome some of the more aggressive spam filtering systems (hotmail, yahoo mail, ...) and ensures your mail is delivered.
__________________ Dedicado a proyectos web, actualmente desarrollando un sistema de diseño de flyers online muy fácil de usar. |