-1
我得到這個錯誤與mail()
功能笨:CodeIgniter的電子郵件信箱錯誤
A PHP Error was encountered
Severity: Warning
Message: mail() [function.mail]: Bad parameters to mail() function, mail not sent.
Filename: libraries/Email.php
Line Number: 1519
這裏是我的郵件腳本(我的控制器的一部分):
$message = "...text...";
$this->load->library('email');
$this->email->from('[email protected]', 'OEM Sales');
$this->email->to('[email protected]');
$this->email->subject('Contact Page Request');
$this->email->message($message);
$this->email->send();
線1519是郵件發送的地方。這裏發生了什麼?
已解答:在這裏找到答案:http://codeignitertips.blogspot.com/。這是一個GoDaddy問題。
此問題的解決方案也可以在這裏找到 http://stackoverflow.com/questions/8350865/malformed-email-subject-header-when-subject-75-chars-using-codeigniter-email -l/30919390#30919390 –