Read from config file |
[eluser]HugoA[/eluser]
Hi! I'm trying to read from a mail.php config file the body of an email i want to send, but i dont get any value at all. I'm able to send the email but there is no body. This is my mail.php file Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and this is the method in the controller where i send the email Code: function sendMail() what's wrong? Thanks for your time and help
[eluser]n0xie[/eluser]
Try: Code: $this->email->message($this->config->item('body'));
[eluser]frist44[/eluser]
or even simpler: Code: $this->email->message(config_item('body')); |
Welcome Guest, Not a member yet? Register Sign In |