Welcome Guest, Not a member yet? Register   Sign In
email class and smtp
#1

[eluser]Alix.G[/eluser]
Hi,

I don't know why but ci failed to send email using the smtp protocol. The thing is that I get no error message the page is always loading and nothing happens. When I use the standard settings it works just fine.

Here is the code in my controller:
Code:
$this->load->library('email');
            
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '465';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'password';
            
$this->email->initialize($config);
            
$this->email->set_newline('\r\n');
$this->email->from('[email protected]', 'alix');
$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();

I'm running ci localy on xampp

Update: I get that:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampplite\htdocs\gremco\site\system\libraries\Email.php on line 1818


Messages In This Thread
email class and smtp - by El Forum - 11-14-2009, 07:42 AM
email class and smtp - by El Forum - 11-14-2009, 11:52 AM
email class and smtp - by El Forum - 11-14-2009, 06:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB