email settings? |
[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, Code: function email_test() I tested it and i got an error message below, Code: Message: Undefined variable: config 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.
[eluser]Bart Mebane[/eluser]
You only need the $config variable to set options, like Code: $config['mailtype'] = 'text'; Code: $this->load->library('email');
[eluser]InsiteFX[/eluser]
Also you will not need to do this. Code: $this->email->initialize(); InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |