henrylunar Posted December 22, 2017 Share Posted December 22, 2017 Hi, I'm having a problem trying to send message with contact form. I have tried many method with STMP, SSL and TSL but sill got an error. I did not use any host providers. I'm hosing with localhost. I was wondering if that cause the problem. Let me know. Thanks, Henry Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 22, 2017 Share Posted December 22, 2017 CubeCart uses PHPMailer, a well-respected emailing utility. What is the error you get? PHPMailer needs to communicate with an SMTP server that you are authorized to use. That server could be the one provided who also provides you your internet connection. There is probably a server you are authorized to use by who provides you your email address. Quote Link to comment Share on other sites More sharing options...
henrylunar Posted December 24, 2017 Author Share Posted December 24, 2017 I got this message. I was wondering what I did wrong? Thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 24, 2017 Share Posted December 24, 2017 (edited) Gmail may be restricting access to its SMTP server against unauthorized users. Having a gmail account would mean you are authorized, but you also need to tell Gmail to expect connections from specified sources. After logging in to your Gmail account, go here: https://myaccount.google.com/security At the bottom of the page, check: Allow less secure apps: ON Also, choose the Sending method as "SMTP with TLS" and set the Outgoing SMTP Port to 587. Your SMTP Username is your complete Gmail email address (not just the name part). Gmail may send you an email reporting something tried to use your account to send email from an unknown source. If you get this email, there will be a link to approve this thing to access the Gmail SMTP server using your credentials. Edited December 24, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
henrylunar Posted December 25, 2017 Author Share Posted December 25, 2017 Thank you for your help. I did exactly what you told. I went in email security setting and turn on Allow less secure apps: ON. I tested with Cubecart and I still get this message. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 25, 2017 Share Posted December 25, 2017 We know that there is no firewall blocking the connection. The Gmail SMTP server is answering. According to the troubleshooting suggestion, the wiki article suggests there may be a problem with OpenSSL. So, in CubeCart admin, click PHP Info. Scroll to the table where OpenSSL would be (the tables are in alphabetical order). I think you are running a local installation of PHP, yes? If so, make sure your PHP has OpenSSL installed. The wiki article also mentions: Quote Enabling "Allow less secure apps" will usually solve the problem for PHPMailer, and it does not make your app significantly less secure. Reportedly, changing this setting may take an hour or more to take effect, so don't expect an immediate fix. Quote Link to comment Share on other sites More sharing options...
henrylunar Posted December 25, 2017 Author Share Posted December 25, 2017 Thank you for the reply. I have checked the OpenSSL and it seen to be enabled and installed. I already test with the PHP mailer. i probably wait for couple hours like you said and see what happen. Thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 25, 2017 Share Posted December 25, 2017 If we are to assume OpenSSL is still a problem, please read: http://docs.php.net/manual/en/openssl.installation.php You can try doing this: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#testing-ssl-outside-php Quote Link to comment Share on other sites More sharing options...
henrylunar Posted December 25, 2017 Author Share Posted December 25, 2017 After reading the two articles, I have no clue what to do. I can only check that Apache has openssl installed. I have looked in php.ini that has extension=php_openssl.dll. Thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 26, 2017 Share Posted December 26, 2017 After reading the two articles, did you execute the test suggested in the second article? If so, what did you discern from the results? 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.