note 84417 added to ref.mail

From: Date: Sun, 13 Jul 2008 17:25:08 +0000
Subject: note 84417 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-141454@lists.php.net to get a copy of this message
Hello, Can anyone help me with this code i have tried to make a contact form on my webpage and i am using "yahoo small business" but for some reasons it doesn't go. i dont know if yahoo doesnt support "mail()" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sendemail Script</title> </head> <body> <!-- Reminder: Add the link for the 'next page' (at the bottom) --> <!-- Reminder: Change 'YourEmail' to Your real email --> <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $notes = $_POST['notes']; $attn = $_POST['attn']; if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Use 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>Use Back - fill in all fields</h2>\n"; die ("Use back! ! "); } $todayis = date("l, F j, Y, g:i a") ; $attn = $attn ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; mail("info@fabicoy.com", $subject, $message, $from); ?> <p align="center"> Date: <?php echo $todayis ?> <br /> Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) <br /> Attention: <?php echo $attn ?> <br /> Message:<br /> <?php $notesout = str_replace("\r", "<br/>", $notes); echo $notesout; ?> <br /> <?php echo $ip ?> <br /><br /> <a href="http://www.fabicoy.com"> Next Page </a> </p> </body> </html> ---- Server IP: 69.147.83.197 Probable Submitter: 194.100.215.1 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- https://master.php.net/note/edit/84417 Del: integrated -- https://master.php.net/note/delete/84417/integrated Del: useless -- https://master.php.net/note/delete/84417/useless Del: bad code -- https://master.php.net/note/delete/84417/bad+code Del: spam -- https://master.php.net/note/delete/84417/spam Del: non-english -- https://master.php.net/note/delete/84417/non-english Del: in docs -- https://master.php.net/note/delete/84417/in+docs Del: other reasons-- https://master.php.net/note/delete/84417 Reject -- https://master.php.net/note/reject/84417 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141454) next »