#43878 [NEW]: Contact form problem
[email protected] ("citlallichan at acceco dot com dot mx")
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
From: citlallichan at acceco dot com dot mx Operating system: Windows PHP version: Irrelevant PHP Bug Type: Website problem Bug description: Contact form problem Description: ------------ Hi, I'm having troubles with the contact form in my webpage. I linked the php with action script. Also to comunicate with the server I use the unicode: System.useCodepage = false; Is this ok or should I errase this line? Reproduce code: --------------- <?php $destinatario="[email protected]"; //estos datos se usaran como cabecera del email. $cabeceras="MIME-Version: 1.0\r\n"; $cabeceras .= "Content-type: text/html; charset=utf-8\r\n"; $cabeceras.="From: {$_POST['nombre']}<{$de}>\r\n"; $cabeceras.="Reply-To: {$_POST['email']}\r\n"; //el asunto del mensaje: $asunto="Contacto Sitio Web ACCECO"; //El cuerpo del mensaje: $cuerpo.=' Nombre: '.$_POST['nombre']. "<br>"; $cuerpo.=' Email: '.$_POST['email']. "<br>"; $cuerpo.=' Empresa: '.$_POST['empresa']. "<br>"; $cuerpo.=' Telefono: '.$_POST['telefono']. "<br>"; $cuerpo.=' Se entero de nosotros por: '.$_POST['medio']. "<br>"; $cuerpo.=' Comentario: '.$_POST['texto']; //la persona que envia el email. $de=$_POST['email']; if(mail($destinatario, $asunto, $cuerpo,$cabeceras)){ echo utf8_encode('&estado=enviado'); }else{ echo utf8_encode('&estado=no_enviado'); } ?> Expected result: ---------------- It suppouse to send an email with the data previously captured in the form. The code uses an "if" to make sure the process is complete, when it's not a messagge tells you that a problem ocurred. Actual result: -------------- An error ocurred and can't send the mail -- Edit bug report at http://bugs.php.net/?id=43878&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43878&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43878&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43878&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43878&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43878&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43878&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43878&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43878&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43878&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43878&r=support Expected behavior: http://bugs.php.net/fix.php?id=43878&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43878&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43878&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43878&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43878&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43878&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43878&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43878&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43878&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43878&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43878&r=mysqlcfg