davidknag Posted July 22, 2010 Share Posted July 22, 2010 I have a problem with my mail feature. it will not send an email any more? help? Here is the file where i have the form on: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Fallout WoW</title> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen> </head> <body> <div id="page"> <div id="menulinks"> <a href="index.html"><span>Home</span></a> <a href="register.php"><span>Register</span></a> <a href="realm.html"><span>Realmlist</span></a> <a href="admins.html"><span>Admins</span></a> <a class="active" href="support.html"><span>Support</span></a> </div> <div id="header" > <h1><a href="#"></a></h1> <div class="description"></div> </div> <div id="mainarea"> <div id="contentarea"> <h2>Support</h2> <br></br> <br></br> We Are WIlling to address all of your problems and concerns personally. <br></br> Please, Put in a ticket! <br></br> <br></br <!-- TROLOLOLOL --> <div class="form"> <form method="post" action="sendeail.php"> <!-- DO NOT change ANY of the php sections --> <?php $ipi = getenv("REMOTE_ADDR"); $httprefi = getenv ("HTTP_REFERER"); $httpagenti = getenv ("HTTP_USER_AGENT"); ?> <input type="hidden" name="ip" value="<?php echo $ipi ?>" /> <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" /> <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" /> Your Name: <input type="text" name="visitor" size="35" /> <br/> <br/> Account Name: <input type="text" name="acct" size="35" /> <br/> <br/> Your Email: <input type="text" name="visitormail" size="35" /> <br/> <br/> Bug/Problem: <select name="attn" size="1"> <option value=" Fallout WoW Connection Bug ">Connection Problems </option> <option value=" Fallout WoW GM Application "> GM Application </option> <option value=" Fallout WoW Website Bug ">Website Problem </option> <option value=" Fallout WoW Tech Support ">Technical Support </option> <option value=" Fallout WoW Other "> Other </option> </select> <br /><br /> Mail Message: <br /> <textarea name="notes" rows="4" cols="40"></textarea> <br /> <input type="submit" value="Send Mail" /> <br /> </form> </div> <!-- /TROLOLOLOL --> <br></br> <strong> After you send in a ticket it will bring you to a page. If it says "Message Sent!" Your Message has been sent and please do not put in another ticket regarding your issue.</strong> <br></br> <br></br> Responces usually take under 24 hours. </div> </div> <div id="sidebar"> <h2>About Fallout WoW</h2>         Fallout WoW is an <strong>AMAZING</strong> World of Warcraft Private Server with all sorts of custom items, quests, etc. <br></br>         Join the awesome gang and pwn in some pvp or have fun on a event or custom boss. you wont find n00bs on this server because they cant handle the epic pvp or the uber bosses! <br/><br/> <br/><br/> <br/><br/> <br/><br/> <br/><br/> <br/><br/> <strong>Private Server Created by Matthew Miller</strong> In Part with David Knag and Adam Arnold </div> <div id="footer"> Designed by David Knag <a href="http://www.davidknag.com/">www.davidknag.com</a> </div> </div> </body> </html> and here is where i have the php actions: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Fallout WoW</title> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen> </head> <body> <div id="page"> <div id="menulinks"> <a class="active" href="index.html"><span>Home</span></a> <a href="registration/index.php"><span>Register</span></a> <a href="realm.html"><span>Realmlist</span></a> <a href="admins.html"><span>Admins</span></a> <a href="support.php"><span>Support</span></a> </div> <div id="header" > <h1><a href="#"></a></h1> <div class="description"></div> </div> <div id="mainarea"> <div id="contentarea"> <h2>Support</h2> <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $acct =$_POST['acct']; $visitormail = $_POST['visitormail']; $notes = $_POST['notes']; $attn = $_POST['attn']; if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Go Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Feedback was NOT submitted</h2>\n"; echo $badinput; die ("Go back!"); } if(empty($visitor) || empty($visitormail) || empty($notes )) { echo "<h2>Go Back - fill in all fields</h2>\n"; die ("Go back!"); } $todayis = date("l, F j, Y, g:i a") ; $attn = $attn ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Name: $visitor ($visitormail)\n Account Name: $acct \n Problem: $attn \n Message: $notes \n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; $to = "[email protected]"; mail($to, $subject, $message, $from); echo "<Strong>MESSAGE SENT!</strong>"; ?> <p align="center"> Problem Type: <?php echo $attn ?> <br /> Message:<br /> <?php $notesout = str_replace("\r", "<br/>", $notes); echo $notesout; ?> <br /> <br /> <br /> <br></br> <br></br> expect a reply within 24 hours <br /><br /> <a href="support.php"> Go Back </a> </p> </div> </div> <div id="sidebar"> <h2>About Fallout WoW</h2>         Fallout WoW is an <strong>AMAZING</strong> World of Warcraft Private Server with all sorts of custom items, quests, etc. <br></br>         Join the awesome gang and pwn in some pvp or have fun on a event or custom boss. you wont find n00bs on this server because they cant handle the epic pvp or the uber bosses! <br/><br/> <br/><br/> <br/><br/> <br/><br/> <br/><br/> <br/><br/> <strong>Private Server Created by Matthew Miller</strong> In Part with David Knag and Adam Arnold </div> <div id="footer"> Designed by David Knag <a href="http://www.davidknag.com/">www.davidknag.com</a> </div> </div> </body> </html> it does not send an email. Link to comment https://forums.phpfreaks.com/topic/208593-mail-problem/ Share on other sites More sharing options...
davidknag Posted July 22, 2010 Author Share Posted July 22, 2010 uhhg i dont understand! Link to comment https://forums.phpfreaks.com/topic/208593-mail-problem/#findComment-1089854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.