I am using smtp in codeigniter and i tried this code.
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'xxx@gmail.com', // change it to yours
'smtp_pass' => 'xxx', // change it to yours
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$this->email->set_newline('
');
$this->email->from('email@email.com', 'Testing');
$this->email->reply_to('email@email.com', 'Testing');
$this->email->to('email@email.com');
$this->email->cc('email@email.com');
$this->email->subject('Testing');
$this->email->message($message);
$this->email->send();
But i didnt understand what smtp_user and smtp_pass i have to give. Can anyone tel me!!