Cannot send mail with no "From" header. |
Hello.
I am using Codeigniter 3 and when i try to send email i get this error Cannot send mail with no "From" header. But the email still sends i got them in my mail. But when i use condition Code: if (!$this->email->send()) My preferences are located in the config/email.php Here is my code. Code: $this->load->library('email'); Any help will be appreciated
What is the error you are getting?
Can you paste it here so we can take a look. Thanks.
In your code you've already used $this->email->send() before using again $this->email->send() in your if statement. The library, after you send an email, clears everything. So, if you want to do something in case of error you don't do the same method twice:
PHP Code: $this->load->library('email'); Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |