Hello, I tried a lot to set up the WP Mail SMTP, but there is an error connecting to the server.
Can anyone help me please
View Full Error Log
`Versions:
WordPress: 6.5.4
WordPress MS: No
PHP: 8.1.13
WP Mail SMTP: 4.0.2
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server
Host: mail.iahmad.me
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1f 31 Mar 2020
Debug:
Email Source: WP Mail SMTP Pro
Mailer: Other SMTP
SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server
SMTP Debug:
2024-06-20 08:20:06 Connection: opening to ssl://mail.iahmad.me:465, timeout=300, options=array()
2024-06-20 08:20:06 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/www/wwwroot/iahmad.me/wp-includes/PHPMailer/SMTP.php line 409]
2024-06-20 08:20:06 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/www/wwwroot/iahmad.me/wp-includes/PHPMailer/SMTP.php line 409]
2024-06-20 08:20:06 Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://mail.iahmad.me:465 (Unknown error) [/www/wwwroot/iahmad.me/wp-includes/PHPMailer/SMTP.php line 409]
2024-06-20 08:20:06 SMTP ERROR: Failed to connect to server: (0)
SMTP Error: Could not connect to SMTP host. Failed to connect to server
`