|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38164 Contact form - Output Error
Submitted: 2006-07-20 14:45 UTC Modified: 2006-07-20 14:52 UTC
From: ana dot garment at mail dot telepac dot pt Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS: Widnows XP
Private report: No CVE-ID: None
 [2006-07-20 14:45 UTC] ana dot garment at mail dot telepac dot pt
Dear Sirs,

We are changing our website and included 1 option for contacts made with PHP.
We have published it and we have an Output Erro.

I believe there is a problem with our file, hereby, and sk you kindly to help us or let us know who can help.

Waiting to hear from Y/,
Thanks for Y/ help,
Ana Ferreira

Reproduce code:
<meta http-equiv=Content-Type content="text/html;  charset=ISO-8859-1">
if(!empty($_POST['sender_mail']) || !empty($_POST['sender_message']) || !empty($_POST['sender_subject']) || !empty($_POST['sender_name']))


$to = ""; 
$s_name = $_POST['sender_name'];
$s_mail = $_POST['sender_mail'];
$subject = stripslashes($_POST['sender_subject']);
$body = stripslashes($_POST['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail enviado por: $s_name <$s_mail>\n";
$header = "From: $s_name <$s_mail>\n";    
$header .= "Reply-To: $s_name <$s_mail>\n"; 
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";

	if(@mail($to, $subject, $body, $header))
		echo "output=sent";
	} else {        
		echo "output=error";    

}else {    
	echo "output=error";


<BODY bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<table border="0" width="100%" height="100%" cellpading="0" cellspacing="0">
		<th><!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--menu--><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 WIDTH="835" HEIGHT="627" id="menu_p" ALIGN="">
 <PARAM NAME=movie VALUE="menu_p.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="menu_p.swf" quality=high bgcolor=#FFFFFF  WIDTH="835" HEIGHT="627" NAME="menu_p" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE=""></EMBED>

Expected result:
We excpect that contact database is sent directly to our email adress (

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-20 14:52 UTC]
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 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.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 23:04:05 2022 UTC