09-10-2012, 12:34 PM
[eluser]redcloud80[/eluser]
Why $this->email->send() returns nothing (blank html)?
This is my email.php config file
Any idea?
Why $this->email->send() returns nothing (blank html)?
Code:
public function __construct()
{
parent::__construct();
$this->load->library('email');
}
public function send_confirmation_email()
{
$user_email = '[email protected]';
$this->email->from('[email protected]', 'ttt');
$this->email->to($user_email);
$this->email->subject('Registration confirmation');
$this->email->message('Please click this link to confirm your registration ');
die($this->email->send());
}
This is my email.php config file
Code:
$config['protocol'] = 'smtp';
$config['charset'] = 'iso-8859-1';//'utf-8';
$config['mailtype'] = 'text';
$config['smtp_host'] = 'smtp.gmail.com';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'mypass';
$config['smtp_port'] = 465;
$config['smtp_timeout'] = 5;
Any idea?