Note that there are some explanatory texts on larger screens.

plurals
  1. POSending values of a form to an email
    text
    copied!<p>Hello i am fensing a problem with my form sending to email. I have created a form to send values to my emal, when in press Send button it tells me that message is sent but i can't see at my yahoo or gmail email, i am receiving nothing ... </p> <p>here is my form with php code:</p> <pre><code>&lt;?php $ToEmail = 'mr_sergios@yahoo.com'; $EmailSubject = 'Site contact form'; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"].""; $MESSAGE_BODY .= "Email: ".$_POST["email"].""; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"]).""; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?&gt; &lt;?php if ($_POST["email"]&lt;&gt;'') { $ToEmail = 'mr_sergios@yahoo.com'; $EmailSubject = 'Site contact form'; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"].""; $MESSAGE_BODY .= "Email: ".$_POST["email"].""; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"]).""; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?&gt; Your message was sent &lt;?php } else { ?&gt; &lt;form action="test.php" method="post"&gt; &lt;table width="400" border="0" cellspacing="2" cellpadding="0"&gt; &lt;tr&gt; &lt;td width="29%" class="bodytext"&gt;Your name:&lt;/td&gt; &lt;td width="71%"&gt;&lt;input name="name" type="text" id="name" size="32"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bodytext"&gt;Email address:&lt;/td&gt; &lt;td&gt;&lt;input name="email" type="text" id="email" size="32"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bodytext"&gt;Comment:&lt;/td&gt; &lt;td&gt;&lt;textarea name="comment" cols="45" rows="6" id="comment" class="bodytext"&gt; &lt;/textarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bodytext"&gt; &lt;/td&gt; &lt;td align="left" valign="top"&gt;&lt;input type="submit" name="Submit" value="Send"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;?php }; ?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload