Jump to content
Jan T

Resolved] Contact Form will not send

Recommended Posts

Hi guys

I have read and reread posts about the Contact Form, tried some things, and still get this response when clicking the submit button.

Solution?

 

 

Capture.PNG

Share this post


Link to post
Share on other sites

Sorry you are having problems. It is more likely that the problem is with your email setup in Admin>Store Settings>Advanced, rather than the contact form. Have you saved your settings and THEN run the email test?

What Sending Method are you using?

Your OutgoingPort may not be the default - your host will have that information somewhere in cPanel.

How about Authentication?

Share this post


Link to post
Share on other sites

Hi Dirty Butter,

The store has been in place online using CubeCart since 2010. Emails are sent to and fro all the time. All the products are sold by Julie online, no physical store.

So what you suggest can surely not be the problem?

Share this post


Link to post
Share on other sites

If you are willing to make an edit, please try:

In /classes/cubecart.class.php, near line 1439-1441 (CC614) or 1444-1445 (CC615), find:

} else {
  $GLOBALS['gui']->setError($GLOBALS['language']->documents['error_document_contact']);
}

Change to:

} else {
  $GLOBALS['gui']->setError($GLOBALS['language']->documents['error_document_contact']);
  $GLOBALS['gui']->setError($mailer->ErrorInfo);
}

Try again to send a message through the Contact Us page.

Share this post


Link to post
Share on other sites

Was there the previous message, but now including this new message?

"Brackets" I think is a programmer's text editor for Mac? Ok, I get what you are saying.

So, this is very interesting. Let's go and read what it says.

Be back shortly.

Share this post


Link to post
Share on other sites

Just these all on one line.

Brackets is on Windows 10 too. mor10 from Lynda.com recommended it and I like it.

Share this post


Link to post
Share on other sites

Please verify that the new code still has both setError statements:

} else {
  $GLOBALS['gui']->setError($GLOBALS['language']->documents['error_document_contact']);
  $GLOBALS['gui']->setError($mailer->ErrorInfo);
}

"All on one line"?

You mean this is the ONLY thing that appears on the returned web page? Nothing else about what CubeCart is suppose to show?

 

Share this post


Link to post
Share on other sites

Hi Brian

Here's the section in the file:

// Send
					if ($mailer->Send()) {
						$GLOBALS['gui']->setNotify($GLOBALS['language']->documents['notify_document_contact']);
						httpredir('index.php');
					} else {
              $GLOBALS['gui']->setError($GLOBALS['language']->documents['error_document_contact']);
              $GLOBALS['gui']->setError($mailer->ErrorInfo);
            }
				}
			}

			// Display form

Attached the error screen

Capture.PNG

Share this post


Link to post
Share on other sites

Have you ever run the SMTP Test button in admin, Store Settings, Advanced tab?

This sends an email to the store's email address. If the store's email address has the same domain name as the store itself, then be aware that some hosting environments seen to have problems getting the PHP script to establish contact with the email program that is located on the same server.

Is it the case where the store's main email domain is the same as the store's domain?

Ok, the above image is what I expected to see.

Share this post


Link to post
Share on other sites

Hi again.

All the SMTP settings failed.

PHP Mailer worked.

Julie replied to the text message.

Thanks for all your help.

Share this post


Link to post
Share on other sites
1 hour ago, Jan T said:

All the SMTP settings failed.

PHP Mailer worked.

While the php mailer may work, you would be much better finding what settings are correct for your site / hosting in order to use SMTP (you will need to enter the correct port and almost certainly enable authentication and enter username and password for authentication) as email deliverability is MUCH better for SMTP than for php mail

Ian

Share this post


Link to post
Share on other sites

'Sme again!

After waiting a couple of hours, I reset the SMTP with authentication, saved, tested, and then tried the contact form again.

Success! I did a test print order and then received the confirmation email. Julie is going to send a small PayPal order but we expect all will be well.

Thanks again for your great helpful ideas.

Jan T

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×