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%"> </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ó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";
}
?>