Thanks @vivrathore – tried that but still not working.
Versions:
WordPress: 4.9.6
WordPress MS: No
PHP: 5.6.35
WP Mail SMTP: 1.2.5
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.gmail.com
Port: 25
SMTPSecure: ssl
SMTPAutoTLS: bool(false)
SMTPAuth: bool(true)
Server:
OpenSSL: Yes
Apache.mod_security: No
SMTP Debug:
2018-06-07 11:17:48 Connection: opening to ssl://smtp.gmail.com:25, timeout=300, options=array (
)
2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): Failed to enable crypto
2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:25 (Unknown error)
2018-06-07 11:17:48 SMTP ERROR: Failed to connect to server: (0)
2018-06-07 11:17:48 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting