From: sivanarayanan_s at eth dot net
Operating system: Windows XP
PHP version: 5.2.1
PHP Bug Type: *Mail Related
Bug description: Feed back not working
Description:
------------
I've designed test feedback.php form. But it's not working. I've changed
code in php.ini (windows dir).SMTP=smtp.eth.net (my ISP), but phpinfo()
showing SMTP=localhost. Can you please help me out in this situation.
I'm learing PHP now. Kindly help me.
Reproduce code:
---------------
<html>
<head>
<title>feedback</title>
</head>
<body>
<?php
if(isset($submit)):
$to="[EMAIL PROTECTED]";
$subject=" Feedback for the website!";
$body= "A user has entered feedback on the site!\n";
$body .= "Their feedback is:\n\n";
$body .= $feedback;
mail($to, $subject, $body);
print("<h2> Thanks for your feedback!</h>");
else:
?>
<form action="mail2.php" method="POST">
<h> Please send us your feedback</h2>
<textarea cols=35 rows=15 name="feedback">
</textarea>
<br>
<input type="submit" name="submit" value="Submit">
</form>
<?
endif;
?>
</body>
</html>
(above code, I've taken it from my PHP book)
Expected result:
----------------
mail not received
Actual result:
--------------
mail should reach, [EMAIL PROTECTED]
--
Edit bug report at http://bugs.php.net/?id=40984&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40984&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40984&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40984&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40984&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40984&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40984&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40984&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40984&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40984&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40984&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40984&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40984&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40984&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40984&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40984&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40984&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40984&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40984&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40984&r=mysqlcfg