New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP.php Failure - FYI #6768
Comments
Interesting. After doing a research on this error message: https://stackoverflow.com/questions/40534135/fockopen-failed-to-enable-crypto , in system/library/mail/smtp.php file, find:
replace with:
See if that solves the issue. However, since you are posting about OC v3.0.2.0 issues, it would of been more appropriate on the forum. |
Followed may also be an important note to consider about this error message: https://stackoverflow.com/questions/5498497/error-with-fsockopen-and-ssl-failed-to-enable-crypto?rq=1 |
Hi @straightlight Thanks for your time on this info, Regarding a Test result on the code you posted Using: None of these errors on your link ref's are related to this one posted above on my comment. I will keep the Mail.php for now i guess (it's doing the job at least) |
smtp.gmail.com465 or smtp.gmail.com587 will never work. Guess the code should be like: |
@osworx Thanks for your input ; According to your modifications as seen bellow
Here's the error
This will need better time to be tested - I will be out on this weekend so, Won;t be able to keep going on this post until Tuesday... |
As you can see, this error message has nothing to do with Opencart since you also claim that the error message also happens when using v2.3.0.2 release while GitHub issues tab is also specifically about the alpha release at this time. What is happening in this scenario, while I may have forgot to specify the ':' to access the port on my command line above, is that the self-signed certificate fails to be verified with SSL V3 you are using with Gmail authentication. While Opencart is not delivered with Gmail universal solution out-of-the-box, this type of issue still could of been posted on the forum since this error message is a server-related output message result originating from SSL handshake and not caused by Opencart, the following documentation should prove that the connection may fail or succeed when testing the OpenSSL protocol on your server: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting . Please test the provided command line(s) from the:
section in your SSH console from your host console (or from Putty if allowed). The first line of the output result should either say: CONNECTED or something else. Now, whatever you do, do NOT post the entire results since it includes your SSL certificate begin and end strings. Simply indicate if the first line state that it's CONNECTED or something else. If it says it's CONNECTED (with the result number), it means it might be a handshake failure from Opencart specifically when using PHP functions due to specific requirements that needs to be set to properly establish the handshake with SSL v3. However, if it provides another message in the output results, it means it's not an OC issue. |
Hi @straightlight Here's the output |
Here we go:
See this solution: https://stackoverflow.com/questions/24372942/ssl-error-unable-to-get-local-issuer-certificate |
no working @straightlight - I have even download the cloudflare intermediate certificate (currently using) and keeps Failing. |
Remember you have to use the same email address that is in the contact information page in the SMTP page or you will get errors.
Regards,
Support Team
Niedbalski Outfitters
…---- On Thu, 09 Aug 2018 08:28:27 -0700 notifications@github.com wrote ----
no working @straightlight - I have even download the cloudflare intermediate certificate (currently using) and keeps Failing.
https://support.cloudflare.com/hc/en-us/articles/115001186052-What-intermediates-and-roots-are-Cloudflare-issued-certs-signed-against-
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Not an OC bug issue since the returned error message is about the certificate. |
@kombi747 I know, but thanks for your concern. |
Sorry to hear you have an issue, the GiHub bug tracker is not the place to post issues relating to setup, 3rd party modules or general types of questions. Please read the project information page which should guide you in the right direction for support. Kind regards, J |
Currently I'm Receiving errors when using the SMTP as Mail Selection into OC 3.0.2.0 with Gmail
BTW no 2SV in place so I do not need an Application Password
I Have contacted my Hosting Provider and it Seems to be Everything in proper working order.
General
Mail Engine SMTP
Mail Parameters
SMTP Hostname tls://smtp.gmail.com
SMTP Username info@domain.com
SMTP Password xxxxxxxxxxxx
SMTP Port 587
SMTP Timeout 5
General
Mail Engine SMTP
Mail Parameters
SMTP Hostname ssl://smtp.gmail.com
SMTP Username info@domain.com
SMTP Password xxxxxxxxxxxx
SMTP Port 465
SMTP Timeout 5
2018-05-11 12:36:36 - PHP Warning: fsockopen(): Failed to enable crypto in /home/user/public_html/domain.com/system/library/mail/smtp.php on line 87 2018-05-11 12:36:36 - PHP Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) in /home/user/public_html/domain.com/system/library/mail/smtp.php on line 87
2018-05-11 12:39:39 - PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /home/user/public_html/domain.com/system/library/mail/smtp.php on line 140
Only Working when choose MAIL with the SMTP authentication details
General
Mail Engine Mail
Mail Parameters
SMTP Hostname tls://smtp.gmail.com
SMTP Username info@domain.com
SMTP Password xxxxxxxxxxxx
SMTP Port 587
SMTP Timeout 5
General
Mail Engine Mail
Mail Parameters
SMTP Hostname ssl://smtp.gmail.com
SMTP Username info@domain.com
SMTP Password xxxxxxxxxxxx
SMTP Port 465
SMTP Timeout 5
The text was updated successfully, but these errors were encountered: