【问题标题】:"Relay access denied" error when sending email using CakePHP 1.3使用 CakePHP 1.3 发送电子邮件时出现“中继访问被拒绝”错误
【发布时间】:2014-06-29 10:27:38
【问题描述】:

我正在尝试使用 CakePHP 1.3 发送电子邮件,但收到以下错误消息:

“SMTP 服务器错误:4.7.1:中继访问被拒绝”

发送邮件的代码如下:

this->set('username',$username);
$this->set('pass',$pass);
$this->Email->fromName = Configure::read('from_team');        
$this->Email->to       = $to;    
$this->Email->subject  = 'New Password';    
$result = $this->Email->send();

有什么想法吗?

【问题讨论】:

    标签: email cakephp cakephp-1.3


    【解决方案1】:

    这是由于 SMTP 设置无效。我已经检测到并解决了。

    【讨论】:

      猜你喜欢
      • 2018-01-22
      • 1970-01-01
      • 2018-05-19
      • 2014-02-12
      • 1970-01-01
      • 1970-01-01
      • 2014-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多