开发者

CodeIgniter email mail error

开发者 https://www.devze.com 2023-02-05 16:01 出处:网络
I\'m getting this 开发者_如何学Pythonerror with the mail() function in CodeIgniter: A PHP Error was encountered

I'm getting this 开发者_如何学Pythonerror with the mail() function in 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

Here is my mail script (part of my controller):

$message = "...text...";
$this->load->library('email');
$this->email->from('oemsales@xxx.com', 'OEM Sales');
$this->email->to('xxxx@xxx.com');
$this->email->subject('Contact Page Request');
$this->email->message($message);
$this->email->send();

Line 1519 is the line where the email is sent. What is going on here?

SOLVED: Found the answer here: http://codeignitertips.blogspot.com/. It was a GoDaddy issue.


Check if you have the correct email address in your to method. Make sure of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消