Note that there are some explanatory texts on larger screens.

plurals
  1. PONot receiving Emails from php code
    primarykey
    data
    text
    <p>Not receiving emails. This is driving me NUTS, the original problem, before with just the field. Email, subject, message. I was getting emails, But I was unable to see the email variable. It just came in, from my server. So I cannot reply to any emails I receive. thought to add another field. "email again" but it says it is sending the email, and I receive nothing in my inbox. What is the issue here? (note: emailfieldtaken out for security reasons)</p> <pre><code>&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;testing&lt;/title&gt; &lt;style type="text/css"&gt; body,td,th { color: #F7F3F3; } body { background-color: #050505; } &lt;/style&gt; &lt;/head&gt; &lt;body style="text-align: center"&gt; &lt;?php ?&gt; &lt;br /&gt; &lt;?php if (isset($_POST['submit'])){ { //excute the code $email = $_POST['email']; $subject = $_POST['subject']; $eg = $_POST['eg']; $message = $_POST['message']; if (strlen($email) &lt;= 0) { echo "You need to enter an email"; }else{ if (strlen($subject) &lt;= 0) {echo "You need to enter a subject"; }else{ if (strlen($message) &lt;= 0) {echo "You need to enter a message"; }else{ if (strlen($eg) &lt;= 0) {echo "Email Again"; }else{ if(filter_var($email, FILTER_VALIDATE_EMAIL) == true){ //continue with code mail("random@gmail.com", $subject, $message, $eg, "From:$email"); echo "Your message has been sent"; } else { echo "You must fill out the entire form"; } } } } } } } ?&gt; &lt;br /&gt; &lt;span style="text-align: center"&gt;This is the contact form.&lt;/span&gt; &lt;form method="post" action="testing.php"&gt; &lt;table align="center" style="color: #030303;"&gt; &lt;tr&gt;&lt;td&gt;Email: &lt;input type="text" name="email" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;trd&gt;&lt;td&gt;Email Again:&lt;input type="text" name="eg" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;trd&gt;&lt;td&gt;Subject:&lt;input type="text" name="subject" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;trd&gt;&lt;td&gt;&lt;label for="textarea"&gt;Message:&lt;/label&gt; &lt;textarea name="message" cols="40" rows="15"&gt;Type your message here.&lt;/textarea&gt;&lt;/tr&gt;&lt;tr&gt; &lt;trd&gt;&lt;td&gt;&lt;input type="submit" name="submit" value="send" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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