![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)
Código PHP:
<?php
if($email == "")
{
header("Location: falla.php");
}
else
{
//despues de añadirlo a una base de datos
$asunto = 'Alta en CREATICAltda.com!!';
$cabecera .= "MIME-Version: 1.0\r\n";
$cabecera .= "Content-type: text/html; charset=iso-8859-1\r\n";
$cabecera .= "From: CREATICA Ltda. <[email protected]>\r\n";
$mensaje = "<html><head><title></title>";
$mensaje .= "<style type=\"text/css\">";
$mensaje .= "body,td,th {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;color: #333333;}";
$mensaje .= "body {background-color: #FFFFFF;margin-left: 0px;margin-top: 0px;}</style></head>";
$mensaje .= "<body><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
$mensaje .= "<tr><td align=\"left\" valign=\"top\">";
$mensaje .= "<table width=\"413\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
$mensaje .= "<tr><td><img src=\"http://www.neoestudio7.com/nuevo01.jpg\" width=\"413\" height=\"95\"></td></tr>";
$mensaje .= "<tr><td align=\"left\" valign=\"top\"><div align=\"left\"><strong>Estimado usuario:</strong><br><br>";
$mensaje .= "Hemos recibido su solicitud, ya hemos añadido su dirección electrónica a nuestra base de datos, desde ahora podrá";
$mensaje .= "recibir novedades y noticias sobre nuestras ofertas y trabajos.<br><br>";
$mensaje .= "Le agradecemos por suscribirse.<br><br>Atte.<br>";
$mensaje .= "<strong>CREATICA Ltda.</strong></div></td></tr>";
$mensaje .= "<tr><td> </td></tr>";
$mensaje .= "<tr><td bgcolor=\"#CCCCCC\"><div align=\"center\">- CREATICA Ltda. - 2005 </div></td></tr></table>";
$mensaje .= "</td></tr></table></body></html>";
mail($email,$asunto,$mensaje,$cabecera);
}
?>