私はこのコードを実行しようとしています:
$this->load->library('email');
$this->email->from('anu1488@gmail.com', 'Anudeep');
$this->email->to('anu1488@gmail.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();
送信しようとすると、次のエラーが発生しました。
A PHP Error was encountered
Severity: Warning
Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
Filename: libraries/Email.php
Line Number: 1553
これは何が原因ですか?どうすれば解決できますか?