hello folks,
I'm having a serious issue with email forms working using the PHP ()mail function on my box. I'm not even sure when it stopped working, but it just isn't working now and I need to find out why, which is what I need help with.
I've posted a simple email form below that isn't working either. I get no errors back on the site after I submit, I cannot find any errors in any logs and there is no mails in queue on the server. I'm totally at a loss.
I'm running:
Apache version 1.3.37
PHP version 4.4.4
MySQL version 5.0.24-standard
cPanel Build 10.9.0-CURRENT 4
So any help I would very much appreciate.Code:<div> <form method="post" action="<?php $_SERVER['PHP_SELF']; ?>"> <p>Name:</p> <input name="name" type="text" /> <p>Email:</p> <input name="email" type="text" /> <p>Subject:</p> <input name="subject" type="text" /> <p>Message:</p> <textarea name="message" rows="6"></textarea> <br /> <input type="submit" value="Send" /><input type="hidden" name="do" value="send" /><input type="reset" value="Reset" /> </form> </div> <?php if($_POST['do']=="send") { $recipient="testing@ezwebsol.com"; // Set your email here // $subject=$_POST['subject']; $name=$_POST['name']; $email=$_POST['email']; $message=$_POST['message']; $formsend=mail("$recipient", "$subject", "$message", "From: $name ($email)\r\nReply-to:$email"); echo("Your message was successfully sent!"); } ?>
hamper



LinkBack URL
About LinkBacks
Reply With Quote









