Welcome Guest, Not a member yet? Register   Sign In
Dreamhost + Gmail SMTP + CI
#1

[eluser]Vicente Russo[/eluser]
Helloo fellows, I need a little push here.

I`m trying to send and email with smtp, hosted on dreamhost. The thing is, I dont know where is the problem. I got an 404 error when I execute $this->email->send();

Code:
$this->load->library('email');
            
            
            $config = Array(
              'protocol' => 'smtp',
              'smtp_host' => 'ssl://smtp.gmail.com',
              'smtp_port' => 587,
              'smtp_user' => 'myuser@mydomain',
              'smtp_pass' => 'mypass'
            );

            $this->email->initialize($config);
            

            $this->email->from('myuser@mydomain', 'Vicente');
            $this->email->to('[email protected]');

            $this->email->subject('Email Test');
            $this->email->message('Testing the email class.');

            $this->email->send();

            echo $this->email->print_debugger();

Checking the apache logs, I got "Premature end of script headers: index.php" error.

So what can it be? :S

Thx!


Messages In This Thread
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 12:25 PM
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 12:32 PM
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 12:48 PM
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 01:20 PM
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 01:25 PM
Dreamhost + Gmail SMTP + CI - by El Forum - 05-22-2009, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB