Hi,
For the last days I have tried to get the SMTP mail in Joomla 5 to work - but I get messages that it can not connect.
So my setup is:
Windows 10 pro PC (local pc)
Xampp installation 8.2.12
Joomla version 5.2.0
The openssl.dll is changed to be included in the PHP.ini files
API password on google validated and working.
And the setting in Joomla Server is setup to the documentation found various places on the internet:
SMTP - smtp.gmail.com
Port: 465
Security: SSL/TLS
There ar no firewall issues on the Windows 10 Pro pc - please see test form Zebmap app:
Scanning smtp.gmail.com (142.250.102.109) [1000 ports]
Discovered open port 587/tcp on 142.250.102.109
Discovered open port 993/tcp on 142.250.102.109
Discovered open port 995/tcp on 142.250.102.109
Discovered open port 25/tcp on 142.250.102.109
Discovered open port 465/tcp on 142.250.102.109
Completed SYN Stealth Scan at 14:44, 4.79s elapsed (1000 total ports)
Initiating Service scan at 14:44
gsmtp
465/tcp open ssl/smtp Google gsmtp
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=smtp.gmail.com
| Subject Alternative Name: DNS:smtp.gmail.com
| Issuer: commonName=Avast Web/Mail Shield Root/organizationName=Avast Web/Mail Shield
| Public Key type: ec
| Public Key bits: 256
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2024-10-07T08:25:31
| Not valid after: 2024-12-30T08:25:30
| MD5: 938f:c186:c67d:fe26:6415:d91b:5a46:8bfa
|_SHA-1: c8a7:49d2:b304:ba0f:8622838c:ddb128e6
| smtp-commands: smtp.gmail.com at your service, [62.66.178.3], SIZE 35882577, 8BITMIME, AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH, ENHANCEDSTATUSCODES, PIPELINING, SMTPUTF8
|_ 2.0.0 https://www.google.com/search?btnI&q=RFC+5321 a640c23a62f3a-a9eb17cec86sm135591766b.119 - gsmtp
The log has been enabled on the Joomla site and here are the result:
2024-11-05T13:49:17+00:00ERROR 10.34.0.3mailError in Mail API: Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://smtp.gmail.com:465 (Unknown error) [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP ERROR: Failed to connect to server: (0)
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP Error: Could not connect to SMTP host. Failed to connect to server
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://smtp.gmail.com:465 (Unknown error) [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP ERROR: Failed to connect to server: (0)
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP Error: Could not connect to SMTP host. Failed to connect to server
I have test the SMTP setup on another Joomla installation on a different PC (Windows 10 Education) - and here it is working.
Do any have any clues to what is wrong ?
For the last days I have tried to get the SMTP mail in Joomla 5 to work - but I get messages that it can not connect.
So my setup is:
Windows 10 pro PC (local pc)
Xampp installation 8.2.12
Joomla version 5.2.0
The openssl.dll is changed to be included in the PHP.ini files
API password on google validated and working.
And the setting in Joomla Server is setup to the documentation found various places on the internet:
SMTP - smtp.gmail.com
Port: 465
Security: SSL/TLS
There ar no firewall issues on the Windows 10 Pro pc - please see test form Zebmap app:
Scanning smtp.gmail.com (142.250.102.109) [1000 ports]
Discovered open port 587/tcp on 142.250.102.109
Discovered open port 993/tcp on 142.250.102.109
Discovered open port 995/tcp on 142.250.102.109
Discovered open port 25/tcp on 142.250.102.109
Discovered open port 465/tcp on 142.250.102.109
Completed SYN Stealth Scan at 14:44, 4.79s elapsed (1000 total ports)
Initiating Service scan at 14:44
gsmtp
465/tcp open ssl/smtp Google gsmtp
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=smtp.gmail.com
| Subject Alternative Name: DNS:smtp.gmail.com
| Issuer: commonName=Avast Web/Mail Shield Root/organizationName=Avast Web/Mail Shield
| Public Key type: ec
| Public Key bits: 256
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2024-10-07T08:25:31
| Not valid after: 2024-12-30T08:25:30
| MD5: 938f:c186:c67d:fe26:6415:d91b:5a46:8bfa
|_SHA-1: c8a7:49d2:b304:ba0f:8622838c:ddb128e6
| smtp-commands: smtp.gmail.com at your service, [62.66.178.3], SIZE 35882577, 8BITMIME, AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH, ENHANCEDSTATUSCODES, PIPELINING, SMTPUTF8
|_ 2.0.0 https://www.google.com/search?btnI&q=RFC+5321 a640c23a62f3a-a9eb17cec86sm135591766b.119 - gsmtp
The log has been enabled on the Joomla site and here are the result:
2024-11-05T13:49:17+00:00ERROR 10.34.0.3mailError in Mail API: Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://smtp.gmail.com:465 (Unknown error) [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP ERROR: Failed to connect to server: (0)
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP Error: Could not connect to SMTP host. Failed to connect to server
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://smtp.gmail.com:465 (Unknown error) [[ROOT]\libraries\vendor\phpmailer\phpmailer\src\SMTP.php line 408]
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP ERROR: Failed to connect to server: (0)
2024-11-05T13:49:18+00:00ERROR 10.34.0.3mailError in Mail API: SMTP Error: Could not connect to SMTP host. Failed to connect to server
I have test the SMTP setup on another Joomla installation on a different PC (Windows 10 Education) - and here it is working.
Do any have any clues to what is wrong ?
Statistics: Posted by CampWest — Tue Nov 05, 2024 2:06 pm