11-30-2010, 07:41 AM
[eluser]anna16[/eluser]
Hello
I created email.php file and save it under /application/config directory
in my controller I have this test method below,
I tested it and i got an error message below,
The line number 103 is this code below,
well the manual said all i need to do is just define the $config variable inside the email.php
What should i do with this $config variable? should i remove it?
Thanks in advanced.
Hello
I created email.php file and save it under /application/config directory
in my controller I have this test method below,
Code:
function email_test()
{
$this->load->library('email', $config);
$this->email->from('[email protected]', 'Admin');
$this->email->to('[email protected]');
$this->email->subject('Activate your account - email test');
$this->email->set_alt_message('Pleae click the link below to activate your account at samplesite.com<br><a href="coder9.com">click here</a>');
#$this->email->set_alt_message('Pleae click the link below to activate your account at samplesite.com<br><a href="coder9.com">click here</a>');
$this->email->send();
echo $this->email->print_debugger();
}
I tested it and i got an error message below,
Code:
Message: Undefined variable: config
Filename: membership/site.php
Line Number: 103
The line number 103 is this code below,
Code:
$this->load->library('email', $config);
well the manual said all i need to do is just define the $config variable inside the email.php
What should i do with this $config variable? should i remove it?
Thanks in advanced.