Error sending mail: stream_socket_client()
When you want to send an email and show this error:
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
stream_socket_client(): Failed to enable crypto
stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 [http://smtp.gmail.com:465] (Unknown error)
This problem occurs because the verification of the SSL certificate is unsuccessful, therefore, to solve this problem, you must follow these steps:
-Download the file carcert.pem and copy it to this example path: C:/Program Files/NetMake\v9\components\php\extras
-Login to php.ini
-In the section [openssl] the parameter must be modified by: openssl.cafile= "C:\Program Files\NetMake\v9\components\php\extras\cacert.pem"
-And then you must restart the apache: https://scriptcase-support.kayako.com/en-us/article/1321-restart-apache
Related Articles
Problems sending emails - sc_mail_send
When using the macro sc_mail_send with the following parameters: After execution, the following error appears: Fatalerror:Uncaught Swift_TransportException: Expected response code 250 but gotcode "535", with message "535-5.7.8 Username andPassword ...
PHP error level - error_reporting
The error_reporting directive in php.ini defines the levels of errors that PHP will report, the levels of errors are: Errors and Logging Value Constant Description Note 1 E_ERROR (integer) Fatal run-time errors. These indicate errors that can not ...
Connection error: error_profile_test_module
When we deploy a project and we find this type of error: "Connection error: error_profile_test_module" This error normally occurs when you use a different production environment DBMS Type than the development environment. To solve this, access your ...
Macro sc_error_continue
When we want to insert, modify or delete a record within our form it can not be possible because of the database errors that are previously configured, which can be generated by ourselves by means of triggers, for example: In this example we create a ...
sc_alert - Show Error Message with SweetAlert (error)
To use the new SweetAlert functionality and display an error message, the following parameters must be taken into account: When executing it would look like this: