Welcome Guest, Not a member yet? Register   Sign In
Email library problems - SOLVED
#1

[eluser]FuzzyJared[/eluser]
I am building an app utilizing freakauth_light. I am able to send emails through when working with or extending anything in the freakauth_light functionality / views. But when trying to send emails from outside of freakauth_light, such as one of my own controllers, the application stops as if an error occurs. I don't get anything kicked out to the screen.

I am able to include the library without a problem, both in the class and in a _sendEmail function. But as soon as I call on a specific function of that email library it errors out.

Example That errors out
Code:
$this->load->library('email');
$this->email->clear();

Example that errors out
Code:
$send =& get_instance();
$send->load->library('email');
$send->email->from('[email protected]');

Any suggestions would be appreciated.


SOLUTION

I found out what the problem was. I had $this->email declared earlier for the user’s email address. Changing it to
$this->my_email

solved it..... I am not sure why that would be a problem. $this->email should be different than $tobj->email.




Theme © iAndrew 2016 - Forum software by © MyBB