Welcome Guest, Not a member yet? Register   Sign In
Problem in the email class
#11

[eluser]Matthieu Brunet[/eluser]
1.7.2...
Can you paste me the code you use for your test, so that I can test it on my system ?

Thanks.
#12

[eluser]adaxa[/eluser]
Here is the controller

Code:
class Contacts extends Controller
{
    public function __construct()
    {
        parent::_construct();
        $this->load->library('email');
    }
    
    public function send_email()
    {
        $config['wordwrap'] = FALSE;
        $config['mailtype'] = "html";
        
        $this->email->initialize($config);
        
        $this->email->from('[email protected]');
        $this->email->to('[email protected]');
        $this->email->subject('Aloha');
        
        if($this->email->send())
        {
            echo 'Email successfully sent';
        }
        else
        {
            echo $this->email->print_debugger();
        }
    }
#13

[eluser]Matthieu Brunet[/eluser]
As usual, the bug was between the computer and the chair. I was calling initialize after from, to, etc. I moved before all, and it worked !!
thanks a lot for your help !!




Theme © iAndrew 2016 - Forum software by © MyBB