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?
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?