This is my code:
$config = array( 'protocol' => 'smtps', 'smtp_host' => 'ssl://smtps.googlemail.com', 'smtp_user' => '[email protected]', 'smtp_pass' => '******', 'smtp_port' => '465', 'mailtype' => 'html', 'smtp_timeout' => '4', 'newline' => "\r\n" ); $this->email->initialize($config); $this->email->to('[email protected]'); $this->email->cc();//$this->input->post('cctxt') $this->email->from('[email protected]'); $this->email->subject('Test subject'); $this->email->message('Test message'); $this->email->send(); echo $this->email->print_debugger(); This email is going into spam box.