你好伙计:3我正在尝试做一个动作,它将向客户的电子邮件发送许可用户名和密码。但每次我尝试测试它总是得到这个回应
SMTP Error: Could not connect to SMTP host.
[{ “userDevMessage”: “OK”, “ACK”: “成功”, “exectime”:44.971821069717}]
它会保存在我的数据库中,它甚至会将许可证信息发送到我的电子邮箱中。我的问题是它继续显示响应它没有加载我的成功动作
感谢您的帮助:D这是我的code 的修改
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPSecure = "tls";
$mail->SMTPAuth = true;
$mail->Host = $key->emailServer;
$mail->Port = 25;
$mail->Username = $key->emailAddress;
$mail->Password = $key->emailPassword;
$mail->setFrom('store@valueline.com.ph', 'ESET Online Store');
$mail->addReplyTo('store@valueline.com.ph', 'ESET Online Store');
$mail->addAddress($email, $realname);
$mail->Subject = $subject;
$html = '<html><head></head><body style="font-family: Segoe UI, tahoma, arial, helvetica,sans-serif;color: #222;font-size: 13px;">'.$msg.'</body></html>';
$mail->msgHTML($html);
$mail->send();