Note that there are some explanatory texts on larger screens.

plurals
  1. POPost Form - I Didn't Receive Email
    text
    copied!<p>I can understand tags a bit, also I´ve successfully edited a CMS named GetSimple and all works fine (few months ago). Now, after a couple of months I´ve started with this and cant go through...</p> <p>I've got the massage of a successful send... "Thank you for contacting us. We will be in touch with you very soon. " but I didn't receive the mail. I've tried different HTML and PHP examples from the internet, but it's the same problem.</p> <p>HTML</p> <pre><code>&lt;form method="POST" action="send.php" class="left" enctype="text/plain"&gt; &lt;input type="hidden" name="form-name" value="contact" /&gt; &lt;fieldset&gt; &lt;label for="your_name"&gt;YOUR NAME *&lt;/label&gt;&lt;input type="text" id="your_name" name="your_name" class="required" /&gt;&lt;br/&gt; &lt;label for="your_email"&gt;YOUR email *&lt;/label&gt;&lt;input type="text" id="your_email" name="your_email" class="required email" /&gt;&lt;br/&gt; &lt;label for="current_site"&gt;current site&lt;/label&gt;&lt;input type="text" id="current_site" name="current_site" /&gt;&lt;br/&gt; &lt;label for="estimated_budget"&gt;estimated budget&lt;/label&gt;&lt;input type="text" id="estimated_budget" name="estimated_budget" /&gt;&lt;br/&gt; &lt;label for="project_description"&gt;project description&lt;/label&gt; &lt;textarea id="project_description" name="project_description"&gt;&lt;/textarea&gt;&lt;br/&gt; &lt;!--&lt;input type="submit" value="send" id="sendbutton"&gt; --&gt; &lt;button class="defaultButton small" id="quotebutton"&gt;&lt;span class="buttonLabel"&gt;Send&lt;/span&gt;&lt;/button&gt; &lt;/fieldset&gt; &lt;/form&gt; </code></pre> <p>PHP named "send.php"</p> <pre><code>&lt;?php if(isset($_POST['email'])) { $email_to = "mymail@gmail.com"; $email_subject = "example subject"; $your_name = $_POST['your_name']; // required $your_email = $_POST['your_email']; // required $error_message = "Please enter valid e-mail adress"; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($your_name)."\n"; $email_message .= "Mail: ".clean_string($your_email)."\n"; $email_message .= "Current site: ".clean_string($current_site)."\n"; $email_message .= "Estimated budget: ".clean_string($estimated_budget)."\n"; $email_message .= "Project description: ".clean_string($project_description)."\n"; // create email headers $headers = 'From: '.$your_email."\r\n". 'Reply-To: '.$your_email."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?&gt; } &lt;!-- place your own success html below --&gt; Thank you for contacting us. We will be in touch with you very soon. &lt;?php die(); ?&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