Problem using Email library in another Library |
[eluser]vxav[/eluser]
Hello, I've got a problem when using the CI Email library in another lib. Here is my personal class : Code: class Custom_Email When I try to use the send method from a controller, email is not sent whereas there is not error in print_debugger logs. If I change Code: $this->ci->email->from('[email protected]','Admin of mydomain.com'); Code: $this->ci->email->from('Admin of mydomain.com','Admin of mydomain.com'); If I try Code: $this->load->library('email'); in the controller all is right. Please help me, I can't understand ! Thx
[eluser]TheFuzzy0ne[/eluser]
What's your log telling you? It might benefit you to simply extend the Email class, although I see no reason why it shouldn't work from within another library.
[eluser]Dam1an[/eluser]
seeing as the @ seems to be cauing the problem, try replaing it with '% 4 0' without the spaces, as that means @ (just a random idea)
[eluser]vxav[/eluser]
Ok, I solved the problem, was due to using an email on a unexistant domain... With an [email protected] is OK. Thank you for your help. Regards. |
Welcome Guest, Not a member yet? Register Sign In |