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

[eluser]JackU[/eluser]
UPDATE:
I noticed that my display_errors in php.ini was OFF and that didn+t give me any information to go by. Still can´t send mail using yahoo.com. Do i need to do anything in the .ini file to make it work?
/UPDATE

What is wrong with the email library?

It just stops working. When setting the values (after smtp_host). No error messages or anything. Can´t see anything in the logs (threshold=1) and not in my browser (error_reporting(E_ALL))

My code:

Code:
$this->load->library('email');
        $this->email->from('[email protected]', 'Mymail');
        $this->email->to('[email protected]');
        $this->email->subject('Email Test');
        $this->email->message('Testing the email class.');
        $this->email->smtp_host('smtp.mail.yahoo.com');
        $this->email->smtp_port('465');
        $this->email->smtp_user('mymail');
        $this->email->smtp_pass('somepassword');

        if ($this->email->send())
        {
            echo "WORKS!";
        }
        else
        {
            echo "ERROR!";
        }
#2

[eluser]InsiteFX[/eluser]
You need to setup the email config for the type of emails you are sending, you may also need to setup the emial in your php.ini file.




Theme © iAndrew 2016 - Forum software by © MyBB