3storms Posted April 1, 2008 Share Posted April 1, 2008 hi all after 4 days i get no mail sent to my address...used a dummy one below here is my code <?php if($content) { $from = $_POST["from"]; //gets the name of the person $email = $_POST["email"]; //gets their email address $phone = $_POST["phone"]; //gets their phone number $age = $_POST["age"]; //gets their age $provider = $_POST["provider"]; //gets their age $channel = $_POST["channel"]; //gets their age $content = "This message is from $from whose email address is $email their phone number is $phone, their age is $age, Channel is $channel and provider is $provider.\r\n-----------\r\n "; //little intro of your email message that you will see in your inbox $content = $content . $_POST["content"]; //concatenates the intro with the real content $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it mail('test@gmail, 'Entry April 2008', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!) echo "Thank you."; //what you want to tell the user after sending } ?> <form method="post" action="contest.php"> <table width="293" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="128">Name: </td> <td width="165"><input type="text" name="from" title="Your name"></td> </tr> <tr> <td>Email:</td> <td><input type="text" name="email"></td> </tr> <tr> <td>Phone:</td> <td><input type="text" name="phone"></td> </tr> <tr> <td><p>Age:</p> <p> </p></td> <td><p> <input type="text" name="age"> </p> <p> </p></td> </tr> <tr> <td><p>Who is your Cable / Satelite provider?</p> <p> </p></td> <td><p> <input type="text" name="provider"> </p> <p> </p></td> </tr> <tr> <td><p>What Channel is it on?</p> <p> </p></td> <td><p> <input type="text" name="channel"> </p> <p> </p></td> </tr> <tr> <td>Comments / Feedback </td> <td><textarea rows="5" cols="20" name="content"></textarea></td> </tr> <tr> <td colspan="2" bordercolor="#FFFFFF"><p><br> By Entering this Contest you confirm that you have read the <a href="rules.html" style="color:#FFFFFF">rules and regulations</a> <input type="checkbox" name="checkbox" id="checkbox"> </p> <p> </p></td> </tr> <tr> <td>Limited to One Entry per day </td> <td><div align="center"> <input type="submit" value="Submit"> </div></td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/99066-php-form-submitter-stopped-working/ Share on other sites More sharing options...
3storms Posted April 1, 2008 Author Share Posted April 1, 2008 if this help here is the e-mail header i would get From: [email protected] [mailto:[email protected]] Sent: Tuesday, April 01, 2008 7:39 AM To: [email protected] Subject: Entry April 2008 Link to comment https://forums.phpfreaks.com/topic/99066-php-form-submitter-stopped-working/#findComment-506910 Share on other sites More sharing options...
3storms Posted April 2, 2008 Author Share Posted April 2, 2008 bump Link to comment https://forums.phpfreaks.com/topic/99066-php-form-submitter-stopped-working/#findComment-507130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.