Welcome Guest, Not a member yet? Register   Sign In
Sending HTML Emails from Model
#4

[eluser]mddd[/eluser]
Check out this post.
If you can't access a loaded library right away, you can force CI to check again for all loaded libraries: $this->_assign_libraries();
I think this may have to do with the fact that you are loading and accessing from the constructor.
You could also try to load the email library in the constructor, and then initialize it later (in the function before you start sending email).
Or you could put the email config in a config file so it is loaded automatically.


Messages In This Thread
Sending HTML Emails from Model - by El Forum - 08-11-2010, 02:33 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 02:46 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 03:18 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 03:29 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 03:36 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 03:41 AM
Sending HTML Emails from Model - by El Forum - 08-11-2010, 03:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB