Hello my contact form is not sending. Edited all the placed where I believe I should add my e-mail address to have the information sent to me when you click send but nothing is happening. This is not the Wordpress site only HTML & PHP please help asap.
Contact Form Not Sending
10 posts from 4 voices-
Posted 10 months ago #
-
Hello,
If it is not a WordPress site, I don't think we can possibly offer you any help. Can you give us a link?
Regards,
IsmaelPosted 10 months ago # -
http://www.savethecathouse.org.
So support is only for WP even if I purchased the HTML files from you folks?
Posted 10 months ago # -
Hello,
Sorry, I thought you have a PHP files that you created on your own. :)
Regards,
IsmaelPosted 10 months ago # -
Hi,
I visited the contact page and tested it. It seems to be working, at least it gives me the notice that my message has been sent.
Regards,
IsmaelPosted 10 months ago # -
It works but it doesn't send to my e-mail address. I think something is wrong with the send.php file. see code below.
This is the code in my send.php file.
<?php
if(isset($_POST['Send'])){
$error = false;
$the_name = $_POST['yourname'];
$the_email = $_POST['email'];
$the_website = $_POST['website'];
$the_message = $_POST['message'];
if(!checkmymail($the_email))
{
$error = true;
$the_emailclass = "error";
}else{
$the_emailclass = "valid";
}
if($the_name == "")
{
$error = true;
$the_nameclass = "error";
}else{
$the_nameclass = "valid";
}
if($the_message == "")
{
$error = true;
$the_messageclass = "error";
}else{
$the_messageclass = "valid";
}
if($error == false)
{
$to = $_POST['myemail'];
$subject = "New Message from " . $_POST['myblogname'];
$header = 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$header .= 'From:'. $_POST['email'] . " \r\n";
$the_message = nl2br($the_message);
$message = "New message from $the_name
Mail: $the_email
Website: $the_website
Message: $the_message
";
mail($to,
$subject,
$message,
$header);
if(isset($_POST['ajax'])){
echo"<h3>Your message has been sent!</h3><p> Thank you!</p>";
}
}
}
function checkmymail($mailadresse){
$email_flag=preg_match("!^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$!",$mailadresse);
return $email_flag;
}
?>Posted 10 months ago # -
Please insert your contact details in contact.php - open up the file and modify following two lines:
$name_of_your_site = "Display.net"; $email_adress_reciever = "office@display.net";Display.net must be replaced with your website address, the email address must be replaced with your email address.
Posted 10 months ago # -
Thanks for responding Dude. I've added my site name and currently nothing is coming through still. I'm stuck on this contact form.
Please advise. Thank you.
Posted 10 months ago # -
I've removed the form for now and left text as this site is being promoted through media right now. The form did seem as if it submitted completely but nothing comes to my e-mail box I checked spam too and nothing.
Posted 10 months ago # -
Hi jessejames,
The only other thing I can think of is to make sure the spelling for your email and website is correct and that the email recipient address isn't automatically rejecting the emails for some reason (server side spam filter for example).
Regards,
Devin
Posted 10 months ago #
Reply
You must log in to post.














