Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/09/2005, 07:44
antirco
 
Fecha de Ingreso: febrero-2003
Mensajes: 204
Antigüedad: 21 años, 2 meses
Puntos: 2
Envio el codigo simplificado a ver si veis algun error

<html>
<head>
<title>Encio de e-mail</title>
</head>
<body>
<div align="center">
<h2>Envio de E-mail</h2></div>
<p align="center">Se esta intentando enviar el acuse de recibo por e-mail....</p>

<?

$emisor = "Un servidor";
$responsable = "Juan";
$asunto = "Pruebas";
$mailemisor = "[email protected]";
$mailresponsable = "[email protected]";

// para responsable
$to = "$responsable<$mailresponsable>";
/* subject */
$subject = "Acuse recibo : ".$asunto;
/* message */
$mensaje = "Saludos";
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers = "From: Jove <$mailemisor>\r\n";
//$headers .= "Cc: [email protected]\r\n";
/* and now mail it */
if (@mail($to, $subject, $mensaje, $headers))
{echo '<p align="center">Ok, se envió bien el e-mail</p>';}
else
{echo '<p align="center">No se pudo enviar el e-mail</p>';}
?>
</div>
</body>
</html>