Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/09/2003, 09:21
Maria de Jesus
 
Fecha de Ingreso: agosto-2003
Ubicación: queretaro, qro
Mensajes: 12
Antigüedad: 20 años, 8 meses
Puntos: 0
hola, realmente lo he hecho ya con varias cuentas de correo, sin embargo, no las envia. el codigo que realmente estoy utilizando es:

Código PHP:
$from_name $HTTP_POST_VARS["txt_nfrom"];
$from_email =$HTTP_POST_VARS["txt_from"];
$to_email $HTTP_POST_VARS["txt_to"];
$subject $HTTP_POST_VARS["txt_subject"];

// headers need to be in the correct order...
$headers "From: $from_name <$from_email>\n";
$headers .= "MIME-Version: 1.0\n";
// the following must be one line (post width too small)
$headers .= "Content-Type: multipart/mixed;type=\"multipart/alternative\"; boundary=\"----=MIME_BOUNDRY_main_message\"\n";
//
$headers .= "X-Sender: $from_name<$from_email>\n";
$headers .= "X-Mailer: PHP4\n"//mailer
$headers .= "X-Priority: 3\n"//1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <$from_email>\n";
$headers .= "This is a multi-part message in MIME format.\n";
$headers .= "------=MIME_BOUNDRY_main_message \n";
$headers .= "Content-Type: multipart/mixed; boundary=\"----=MIME_BOUNDRY_message_parts\"\n";

////////////////////////////////////////////////INDICO OTRA PARTE DE UN FORMATO DIFERENTE (HTML)
// html section begins
$message .= "------=MIME_BOUNDRY_message_parts\n";
$message .= "Content-Type: text/html;\n    charset=\"iso-8859-1\"\n";
$message .= "Content-Transfer-Encoding: quoted-printable\n";
$message .= "\n";
///////////////////////////////////////////////////////TEXTO QUE ESCRIBO
// your html goes here -- It didn't appear properly without
// the weird markup that outlook added after sending
$message .= "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
$message .= "<HTML><BODY>\n";

$messageT $HTTP_POST_VARS["txta_message"];
$messageT .= "</BODY></HTML>\n";
$message .= "\n";

////////////////////////////////////////////////////////INDICO FIN DE TODAS LA PARTES QUE HICE (DIFERENTES FORMATOS)
// this ends the message part
$message .= "------=MIME_BOUNDRY_message_parts--\n";
$message .= "\n";

//message ends
$message .= "------=MIME_BOUNDRY_main_message--\n";

// send the message :-)
if (@mail($to_email$subject$message$headers)==1)
{
echo
"El correo se ha enviado correctamente";
}
else
{
echo
"El correo no se podido enviar correctamente";


este codigo lo utilice dias antes y podia enviar mail, perfectamente. No entiendo que puede estar pasando ahora