I have configured the following settings
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.gmail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]', // change it to yours
'smtp_pass' => 'xyz', // change it to yours
'smtp_timeout'=>20,
'mailtype' => 'text',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email',$config);
//$this->email->set_newline("\r\n");
$this->email->from('[email protected]', 'Garima');
$this->email->to('[email protected]');
// mail message here
I get the following message:
Your message has been successfully sent using the following protocol: mail
From: "Garima" [email protected]
Return-Path: [email protected]
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <@gmail.com>
Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit
Firstly,If i have defined the protocol as smtp, why does it show the protocol as mail.
Secondly, There is no "to" field in the message shown. Why is it so? what changes do i have to make?