Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP contact form messages not receiving
    primarykey
    data
    text
    <p>Hi I have simple contact form for email on my site, and the form works including the success of a message sent,however, I am not receiving email to the designated webmail server. I am running the latest PHP. Do some web servers cache mail or is there some error in this code I am not seeing. </p> <pre><code>&lt;?php $EmailFrom = "email@mydomain.com"; $EmailTo = "email@mydomain.com"; $Subject = "Contacting Me"; $Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // validation $validationOK=true; if (!$validationOK) { print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=error.htm\"&gt;"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Tel: "; $Body .= $Tel; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: &lt;$EmailFrom&gt;"); // redirect to success page if ($success){ print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=index\"&gt;"; } else{ print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=error.htm\"&gt;"; } ?&gt; &lt;div id="contact-area"&gt; &lt;form method="post" action="contactengine.php"&gt; &lt;label for="Name"&gt;Name:&lt;/label&gt; &lt;input type="text" name="Name" id="Name" /&gt; &lt;label for="Email"&gt;Email:&lt;/label&gt; &lt;input type="text" name="Email" id="Email" /&gt; &lt;label for="Message"&gt;Thought:&lt;/label&gt;&lt;br /&gt; &lt;textarea name="Message" rows="20" cols="20" id="Message"&gt;&lt;/textarea&gt; &lt;input type="submit" name="submit" value="Transmit" class="submit-button" /&gt; &lt;/form&gt; &lt;div style="clear: both;"&gt;&lt;/div&gt;&lt;/div&gt; </code></pre>
    singulars
    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