请大家帮帮我。
这是我的配置:
$mail->SMTPAuth = true;
define('PHPMAILERHOST', 'tonyfintech.info');
$phpmailer_smtpuser = 'info@tonyfintech.info';
$phpmailer_smtppassword = 'azerty123';
$phpmailer_smtpport = '587';
$phpmailer_smtpsecure = 'tls';
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => false
)
);
define('TEST', 0);
define('PHPMAILER_SMTP_DEBUG', 1);
I still have this error:
2018-10-30 21:04:23 CLIENT -> SERVER: EHLO tonyfintech.info
2018-10-30 21:04:23 CLIENT -> SERVER: STARTTLS
SMTP Error: Could not connect to SMTP host.
2018-10-30 21:04:23 CLIENT -> SERVER: QUIT
此配置在我的另一台服务器上运行良好,但在这台服务器上运行良好。顺便说一句,当我使用 PHPMailer“仅用于测试”发送电子邮件时,它可以正常工作。问题来自 PHPList