emails Not Sending

I have a site that is not connected to Wordpress.  It might soon be.  However; at this point the email form is not sending emails.  Does the Wordpress have anything to do with this, or what could it be?

Go to contact.

Thnak you.
Who is Participating?
Milind KoyandeCommented:
How you are sending email when user fills the form? Any code?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Your form is posting this page and that page does not exist.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

DS928Author Commented:
Here is the code.  Two things aren't happening. The first is that it's not checking for errors and the second is that it is not sending the email's.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Look at your code.  The form is posting to  and you are giving me code for a page called artist-view-contacts.php.

Those do not match.  Change your form action to hit artist-view-contacts.php.
DS928Author Commented:
I changed it......but it still isn't sending.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
When I click the the share link on the left I get a pop up on when I view source, the form action is set to

<form method='post' action='/popup.php?do=tell&id=' name='cform'>  

You also have javascript file that loading that is not existent

Double check your code as well as validating
DS928Author Commented:
The popup is my next headache.  Right now I am trying to get the contact form to work with the email.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Is this the code that is supposed to be sending mail?
		$error		= '';
		$name		= '';
		$company	= '';
		$phone		= '';
		$email		= '';
		$subject	= '';
		$message	= '';
		$verify		= '';

		if(isset($_POST['contactus'])) {

		$name		= $_POST['name'];
		$company	= $_POST['company'];
		$phone		= $_POST['phone'];
		$email		= $_POST['email'];
		$subject	= $_POST['subject'];
		$message	= $_POST['message'];
		$verify		= $_POST['verify'];

		if(trim($name) == '') {
			$error = '<div class="error_message">Attention! You must enter your name.</div>';
		} else if(trim($email) == '') {
			$error = '<div class="error_message">Attention! Please enter a valid email address.</div>';
		} else if(!isEmail($email)) {
			$error = '<div class="error_message">Attention! You have enter an invalid e-mail address, try again.</div>';
		} else if(trim($comments) == '') {
			$error = '<div class="error_message">Attention! Please enter a message.</div>';
		} else if(trim($verify) == '') {
			$error = '<div class="error_message">Attention! Please enter the verification number.</div>';
		} else if(trim($verify) != '9') {
			$error = '<div class="error_message">Attention! The verification number you entered is incorrect.</div>';

		if($error == '') {

			if(get_magic_quotes_gpc()) {
				$comments = stripslashes($comments);

		$address = "";

		$e_subject = 'You\'ve been contacted by ' . $name . '.';

		$e_body = "You have been contacted by $name with regards to $subject, their additional message is as follows.\r\n\n";
		$e_content = "\"$comments\"\r\n\n";

		$e_reply = "You can contact $name via email, $email";

		$msg = $e_body . $e_content . $e_reply;

		if(mail($address, $e_subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n"))
			 echo "<div id='success_page'>";
			 echo "<h1>Email Sent Successfully.</h1>";
			 echo "<p>Thank you <strong>$name</strong>, your message has been submitted to us.</p>";
			 echo "</div>";
		 } else echo "Error. Mail not sent";


		if(!isset($_POST['contactus']) || $error != '') // Do not edit.

Open in new window

Also I am pretty sure where you have form names like


it should simply be

DS928Author Commented:
Yes that is the code.  I am looking over it again.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I'm not a php expert, but I can't see where you are actually sending.
DS928Author Commented:
It was in the <Form></Form>  the Send button wasn't sending.  Than you for your help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.