php 中使用 qq 邮箱做为发件服务器发送无法发送成功,在本地测试是没问题,但到线上怎么都不行。
报错:Mailer Error: SMTP Error: Could not authenticate.
以下是解决过程:
按上网上的方法修改了
public function IsSMTP() {
$this->Mailer = 'smtp';
}
//改成
public function IsSMTP() {
$this->Mailer = 'SMTP';
}
// Choose the mailer and send through it
switch($this