Jump to content

Resolved] Contact Form will not send


Jan T

Recommended Posts

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?

Link to comment
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.

Link to comment
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?

 

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...