阿里云使用EMLOG评论邮箱设置
今天把网站搬到阿里云虚拟主机,测试中发现邮箱插件无法发送成功,提示
SMTP Error: Could not authenticate.
经过一番研究后,总结出错误一般有以下原因;
class.phpmailer.php文件中的
public $Port = 25; 改成 public $Port = 465;
public $SMTPSecure = ' '; 改成 public $SMTPSecure = 'ssl';
class.smtp.php文件中的
public $SMTP_PORT = 25; 改成 public $SMTP_PORT = 465;
正文完
本文最后更新于2019-9-14,已超过5年没有更新,如果文章内容或图片资源失效,请留言反馈,站长会及时处理,谢谢!