Replies: 0
Hi,
I’m trying to set my SMTP parameters with no success when I send a test mail.
Here is the following error I get :
Versions:
WordPress: 5.8.1
WordPress MS: No
PHP: 8.0.11
WP Mail SMTP: 3.1.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host.
Host: email-smtp.eu-west-1.amazonaws.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1f 31 Mar 2020
Debug:
Email Source: WP Mail SMTP
Mailer: Other SMTP
SMTP Error: Could not connect to SMTP host.
SMTP Debug:
2021-10-05 19:17:51 Connection: opening to email-smtp.eu-west-1.amazonaws.com:587, timeout=300, options=array()
2021-10-05 19:17:51 Connection: opened
2021-10-05 19:17:51 SERVER -> CLIENT: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-ESJ3N0V6D 2vgN1x8DtgKlmWKrfXwz
2021-10-05 19:17:51 CLIENT -> SERVER: EHLO www.mydomaine.com
2021-10-05 19:17:51 SERVER -> CLIENT: 250-email-smtp.amazonaws.com250-8BITMIME250-STARTTLS250-AUTH PLAIN LOGIN250 Ok
2021-10-05 19:17:51 CLIENT -> SERVER: STARTTLS
2021-10-05 19:17:51 SERVER -> CLIENT: 220 Ready to start TLS
2021-10-05 19:17:51 Connection failed. Error #2: stream_socket_enable_crypto(): open_basedir restriction in effect. File(/etc/pki/tls/certs/ca-bundle.crt) is not within the allowed path(s): (/www/wwwroot/www.mydomaine.com/:/tmp/) [/www/wwwroot/www.mydomaine.com/wp-includes/PHPMailer/SMTP.php line 468]
2021-10-05 19:17:51 Connection failed. Error #2: failed loading cafile stream: /etc/pki/tls/certs/ca-bundle.crt [/www/wwwroot/www.mydomaine.com/wp-includes/PHPMailer/SMTP.php line 468]
SMTP Error: Could not connect to SMTP host.
2021-10-05 19:17:51 CLIENT -> SERVER: QUIT
2021-10-05 19:17:51 SERVER -> CLIENT:
2021-10-05 19:17:51 SMTP ERROR: QUIT command failed:
2021-10-05 19:17:51 Connection: closed
SMTP Error: Could not connect to SMTP host.