Jan T Posted February 17, 2017 Share Posted February 17, 2017 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? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 17, 2017 Share Posted February 17, 2017 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? Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 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? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 17, 2017 Share Posted February 17, 2017 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. Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 Hi and thanks I edited the file in Brackets, uploaded it, and now a new error message: SMTP connect() failed with a link to the github repository for PHP Mailer. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Now what? Jan T Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 17, 2017 Share Posted February 17, 2017 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. Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 Just these all on one line. Brackets is on Windows 10 too. mor10 from Lynda.com recommended it and I like it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 17, 2017 Share Posted February 17, 2017 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? Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 17, 2017 Share Posted February 17, 2017 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. Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 Hi again. All the SMTP settings failed. PHP Mailer worked. Julie replied to the text message. Thanks for all your help. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 17, 2017 Share Posted February 17, 2017 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 Quote Link to comment Share on other sites More sharing options...
Jan T Posted February 17, 2017 Author Share Posted February 17, 2017 '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 Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 17, 2017 Share Posted February 17, 2017 Excellent - SMTP always preferred ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.