Problem using Email library in another Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem using Email library in another Library (/showthread.php?tid=19008) |
Problem using Email library in another Library - El Forum - 05-25-2009 [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 Problem using Email library in another Library - El Forum - 05-25-2009 [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. Problem using Email library in another Library - El Forum - 05-25-2009 [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) Problem using Email library in another Library - El Forum - 05-25-2009 [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. |