2
这里“没有到主机的路由”是我的代码:获取错误JangoSmtp CakePHP的配置
function sendMail($template = null, $to_email = null, $from_email = null,
$subject = null, $contents = array()) {
$this->Email->to = $to_email;
$this->Email->subject = $subject;
$this->Email->from =$from_email;
$this->Email->template = $template;
$this->Email->sendAs = 'html';
$this->Email->smtpOptions = array(
'timeout'=>'30',
'port' => '25',
'host' => 'relay.jangosmtp.net',
'username' => 'users',
'password' => 'pass',
'transport' => 'Smtp',
'tls' => true
);
$this->Email->delivery = 'smtp';
$this->set('contents', $content);
$this->Email->send();
}
我收到错误的任何人可以帮我解决“没有到主机的路由”这个 ?