#43878 [Opn->Bgs]: Contact form problem

From: Date: Thu, 17 Jan 2008 19:09:12 +0000
Subject: #43878 [Opn->Bgs]: Contact form problem
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-882@lists.php.net to get a copy of this message
ID: 43878 Updated by: bjori@php.net Reported By: citlallichan at acceco dot com dot mx -Status: Open +Status: Bogus Bug Type: Website problem Operating System: Windows PHP Version: Irrelevant New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2008-01-17 16:26:32] citlallichan at acceco dot com dot mx 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="citlallichan@acceco.com.mx"; //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 this bug report at http://bugs.php.net/?id=43878&edit=1

« previous php.webmaster (#882) next »