|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-03 08:46 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
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.