ここに私のコードがあります:
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();
}
「ホストへのルートがありません」というエラーが表示されます。誰かがこれを修正するのを手伝ってくれますか?