php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40984 Feed back not working
Submitted: 2007-04-03 08:41 UTC Modified: 2007-04-03 08:46 UTC
From: sivanarayanan_s at eth dot net Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 5.2.1 OS: Windows XP
Private report: No CVE-ID: None
 [2007-04-03 08:41 UTC] sivanarayanan_s at eth dot net
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="sivanarayanan_s@eth.net";
  $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, sivanarayanan_s@eth.net.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-03 08:46 UTC] derick@php.net
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.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC