aaP_apploottricks -26 01:12:59 Connection: opening to foolzz.in:587, timeout=300, options=array () 2022-04-26 01:12:59 Connection: opened 2022-04-26 01:12:59 SERVER -> CLIENT: 220 localhost.localdomain ESMTP Postfix 2022-04-26 01:12:59 CLIENT -> SERVER: EHLO foolzz.in 2022-04-26 01:12:59 SERVER -> CLIENT: 250-localhost.localdomain250-PIPELINING250-SIZE 102400000250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250-SMTPUTF8250 CHUNKING 2022-04-26 01:12:59 CLIENT -> SERVER: STARTTLS 2022-04-26 01:12:59 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2022-04-26 01:12:59 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/www/wwwroot/foolzz.in/google/smtp/class.smtp.php line 374] SMTP Error: Could not connect to SMTP host. 2022-04-26 01:12:59 CLIENT -> SERVER: QUIT 2022-04-26 01:12:59 2022-04-26 01:12:59 2022-04-26 01:12:59 Connection: closed SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting while trying to connect with smtp it not works how to send email using or wordpress
aaPanel_Kern aaP_apploottricks Hello, does the mail server have SSL configured? If not, please configure
aaP_apploottricks aaPanel_Kern ssl configured already mail is seding through mailfox but need to send using php
aaPanel_Kern aaP_apploottricks Hello, you can try to send without using ssl, and please make sure that the mail server can be used normally.
idflorin aaP_apploottricks this is not an aapanel issue https://stackoverflow.com/questions/25909348/how-to-send-email-with-smtp-in-php
s4suryapal I am facing the same issue, please share if anyone resolved it. I can send mail using a mail server but can't send using PHP code.