mailer error: smtp connect()failed:https:/github...

tsimtung

Verified User
Joined
Feb 26, 2022
Messages
66
HI, after I migrated a website to a newer php version, the send email program is not working:
the error show:
mailer error: smtp connect()failed:httsp:/github...

// SMTP
$GLOBALS['SMTP_config'][0] = array(
'PHPMailer' => true,
'SMTPAuth' => true, // turn on SMTP authentication
'SMTPSecure' => 'tls',
'Host' => 'nwt019.mydomain.com', // SMTP servers
'Port' => 465, // SMTP port, Maybe 465 instead? SSL only?
'Username' => 'datingsmtp', // SMTP username
'Password' => 'passwd', // SMTP password
'From' => '[email protected]', // '[email protected]'
'FromName' => '214 test'
); // 'My Name'
// -----------

How to solve it?
or how to change the code to use localhost?
 
HI, it is not working even change these.
and I check the destination server said:
sth like
SL routines:ssl3_read_bytes:tlsv1 alert unknown ca
so I may be to add https to my hostname, as it does't have https now.
do you know to add https to hostname?
 
if this "mailer error: smtp connect()failed:httsp:/github..." is true, then its maybe "httsp:/" wrong, instead of "https://"
 
do you know to add https to hostname?
Hostnames do not use https normally as they are not websites, you can however add an ssl certificat to your hostname if you didn't do that yet.

Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single server.domain.com 4096
ofcourse replace server.domain.com with your own hostname.

But maybe you already get things fixed with what Jamgames2 said.
 
thanks for all your reply.

I think the error suggest me to visit:

my php programs are working fine in old server, it has problem after I migrate it to the new server,
and even I change it again to another latest server, it still not working.


and then I go to detination email server and have these lines:

2022-10-29 23:52:51 SMTP call from server80.xxx.com [111.199.204.206] dropped: too many unrecognized commands (last was "\033[A")
2022-10-29 23:52:57 SMTP call from server80.xxx.com [111.199.204.206] dropped: too many unrecognized commands (last was "")
2022-10-29 23:53:09 TLS error on connection from server80.xxx.com [111.199.204.206] (SSL_accept): (TLSv1.3)
2022-10-29 23:54:29 TLS error on connection from server80.xxx.com [111.199.204.206] SSL_accept: TCP connection closed by peer
2022-10-30 00:06:16 SMTP call from server80.xxx.com [111.199.204.206] dropped: too many syntax or protocol errors (last command was "?\035?\027?\036?\031?\030?#???\026???\027???\r?&?$\004\003\005\003\006\003\b\007\b\b\b \b\004\b", NULL)

I have changed some values, eg, ssl, tls, 465, 587, 25......
but it is still the same
from the github troubleshooting, it said old php version may have problem, and my old server have php 5.5 only, and now the php can be 7.4 or 5.6 in new server
 
Back
Top