Foros del Web » Programando para Internet » PHP »

Problema Con Envio De Email

Estas en el tema de Problema Con Envio De Email en el foro de PHP en Foros del Web. HOlas de Nuevo, Necesito ayuda sobre un codigo que me envia correos. siempre lo he usado y me funciona bien, pero esta vez me sale ...
  #1 (permalink)  
Antiguo 21/02/2008, 10:03
Avatar de yuguilley  
Fecha de Ingreso: febrero-2004
Ubicación: Montenegro Quindío
Mensajes: 108
Antigüedad: 20 años, 2 meses
Puntos: 0
Problema Con Envio De Email

HOlas de Nuevo,

Necesito ayuda sobre un codigo que me envia correos. siempre lo he usado y me funciona bien,

pero esta vez me sale el siguiente error "No recipient addresses found in header"

le agradezco la ayuda

y este es el codigo
Código PHP:
<?php
//Envio del Fomulario  
$destino "$op1";
$asunto "CLIENTES"
$cuerpo '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Links</title>
<style type="text/css">
<!--
body {
    background-color: #FFFFFF;
}
table {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
}
.links {
    color: #003366;
    text-decoration: none;
}
.Estilo5 {color: #FFFFFF}
.Estilo6 {
    font-size: 16px;
    font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td height="56" bgcolor="#EBEBEB"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="4%">&nbsp;</td>
        <td width="96%"><span class="Estilo6">Informacion del Cliente</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td bgcolor="#FFFFFF"><blockquote>
      <p><strong>Nombre :</strong> '
.$op2.'<br>    
        <strong>Email:</strong> '
.$op3.'<br>    
        <strong>Telefono:</strong> '
.$op3.'<br>
      </p>
      <table width="100%" border="0" cellspacing="0" cellpadding="6">
        <tr>
          <td bgcolor="#FFFFFF">'
.$op5.' </td>
          </tr>
      </table>
      <br>
    </blockquote></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td height="25" bgcolor="#990000"><div align="center" class="Estilo5"></div></td>
  </tr>
</table>

</body>
</html>'

//para el envio en formato HTML 
$headers "MIME-Version: 1.0\r\n"
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"
//direcci&oacute;n del remitente
$headers .= "From: $op1 <$op4>\r\n"

if(@
mail($destino,$asunto,$cuerpo,$headers))
{
echo 
"Gracias, <b>$op1</b>, Su solicitud ha sido registrada , muy pronto le responderemos ";
}
else
{
echo 
"<b>$op1</b>, Error al Enviar la Solicitud, Intentelo mas Tarde";
}
?>
  #2 (permalink)  
Antiguo 21/02/2008, 10:12
Avatar de Carlojas  
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 10 meses
Puntos: 49
Re: Problema Con Envio De Email

Como es que obtienes el valor de esta variable? $op1 pues parece que no esta retornando ningun valor prueba a poner la variable tal como te llega del formulario ejemplo:
Código PHP:
$destino =  $_POST['mail']; 
Saludos.
  #3 (permalink)  
Antiguo 21/02/2008, 11:06
Avatar de yuguilley  
Fecha de Ingreso: febrero-2004
Ubicación: Montenegro Quindío
Mensajes: 108
Antigüedad: 20 años, 2 meses
Puntos: 0
Re: Problema Con Envio De Email

Amigo ".Carlojas." muchas gracias por tu ayuda , era eso que en el servidor de godaddy las variables de form se capturan asi.

muchas gracias de nuevo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:01.