05/05/2010, 00:19
|
| | | Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 17 años, 8 meses Puntos: 3 | |
Problema con mail Buenas. Saben hace 1 año que no programa y no puedo encontrar este error. Alguien me podria ayudar?
No logro que mail el mail.
Les mando el codigo
index-4.html Código PHP: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title></title> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> <script src="maxheight.js" type="text/javascript"></script> </head> <body id="page5" onload=" new ElementMaxHeight();"> <div class="site_center"> <div id="header"> <object class="position" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="900" height="444"> <param name="movie" value="flash/header1_v8.swf?button=5" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <!--[if !IE]> <--> <object data="flash/header1_v8.swf?button=5" width="900" height="444" type="application/x-shockwave-flash"> <param name="quality" value="high" /> <param name="menu" value="false" /> <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" /> FAIL (the browser should render some flash content, not this). </object> <!--> <![endif]--> </object> </div> <div id="content"> <form method="post" action="spink_contacto.php"> <div class="width_100"> <div class="col1 list maxheight"> <div class="color maxheight"> <div class="bg_color_top maxheight"> <div class="bg_color_bot maxheight"> <div class="bg_color_left maxheight"> <div class="bg_color_right maxheight"> <div class="y_top_right maxheight"> <div class="y_top_left maxheight"> <div class="y_bot_right maxheight"> <div class="y_bot_left maxheight"> <div class="indent_color1"> <img alt="" class="title1" src="images/page5_title1.gif" /> <p>Vestibulum iaculis lacinia est. Proin dictum elementum velit. Fusce euismod consequat ante. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellen- tesque sed dolor. Aliquam congue fermentum nislauris accumsan nulla veldiam.</p> <div class="box_1"> <div class="h_f"><input type="text" class="input1 h" value="name" /></div> <div class="h_f"><input type="text" class="input1 h" value="e-mail" /></div> <div class="h_f"><input type="text" class="input1 h" value="phone" /></div> <div class="h_f"><input type="text" class="input1 h" value="address" /></div> </div> <div class="box_2"> <textarea name="textarea" cols="35" rows="35">message</textarea> <strong><span><a href="#" class="indent_form" onclick="document.getElementById('form1').reset()">Clear</a> <input type="submit" name="enviar" id="enviar" value="Enviar" /> </span></strong> </div> <div class="clear"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col2"><img alt="" src="images/spacer.gif" width="5" height="1" /></div> <div class="col3 border maxheight"> <div class="indent1"> <img alt="" class="title" src="images/page5_title2.gif" /> <img alt="" class="pic" src="images/page5_pic1.jpg" /> 9870 St Vincent Place,<br /> Glasgow, DC 45 Fr 45. <div class="contacts_box"> <span class="fright">+1 800 603 6035</span>Telephone:<br /> <span class="fright">+1 800 889 9898</span>FAX:<br /> </div> E-mail: <span><a href="#">[email protected]</a></span><br class="clear" /> </div> </div> <div class="clear"></div> </div> </form> </div> <div id="footer"> <span><a href="index.html">About Us</a> | <a href="index-1.html">Services</a> | <a href="index-2.html">Products</a> | <a href="index-3.html">Careers</a> | <a href="index-4.html">Contacts</a></span><p>itCOM Group © 2008 | <a href="index-5.html">Privacy Policy</a></p> </div> </div> </body> </html> spink_contacto.php Código PHP:
<script type="text/javascript"> window.setTimeout( "window.location='index-4.html'", 3000 ); </script> <? if ($_POST['nombre'] != ""){ $nombre = $_POST['nombre']; $email = $_POST['email']; //$empresa = $_POST['empresa']; $fono = $_POST['fono']; $direccion = $_POST['asunto']; $mensaje1 = $_POST['mensaje1']; $header = 'From: ' . $nombre . " \r\n"; $header .= "X-Mailer: PHP/" . phpversion() . " \r\n"; $header .= "Mime-Version: 1.0 \r\n"; $header .= "Content-Type: text/plain"; $mensaje .= "Este mensaje fue enviado por " . $Nombre . ", de la empresa " . $empresa . " \r\n"; //$mensaje .= "Fono: " . $fono . " \r\n"; $mensaje .= "E-Mail: " . $email . " \r\n"; $mensaje .= "Asunto : " . $Telefono . " \r\n";; $mensaje .= "Mensaje : " . $mensaje1 . " \r\n";; $mensaje .= "Enviado el " . date('d/m/Y', time()); $mensaje .= " \r\n"; $mensaje .= " \r\n"; $mensaje .= "Puede acceder desde este link http://www.casacanadiense.cl"; $para = "[email protected]"; $asunto = 'Pregunta desde la web'; mail($para, $asunto, utf8_decode($mensaje), $header); echo "Gracias por su tiempo, si es necesario se le contactara a la brevedad "; }else{ } ?> Muchas gracias por su ayuda |