如何检查我的smtp(用于gmail)代码是否在codeigniter中工作?

I m using smtp setting send e-mail in codeigniter

 //smtp settings  
        $config['protocol'] = 'smtp';
        $config['smtp_host'] = 'smtp.gmail.com';
        $config['smtp_port'] = 465;
        $config['smtp_user'] = '****@*****.***';
        $config['smtp_pass'] = '*****';
        $this->load->library('email', $config);
        $this->email->from('*****@*******.****', '******');
        $this->email->to('******@********.****');
        $this->email->subject('email subject ');
        $this->email->message("my email messages");
        if($this->email->send()){
            echo "done";
        }

i) I m getting 'Done' message.

ii) Getting e-mail on receiver e-mail ($this->email->to('****@****.****'); )

But I am not getting any notification in my smtp gmail account(inbox/sent).

How can i make sure that smtp is working ?

Create email.php file in application/config/ folder in live server

Location: application/config/email.php

<?php

/*
* Protocol name TROFEO SOFTWARE SOLUTIONS
*/
$config['protocol'] = 'smtp';   

/*
* smtp_host name for mail sending.
* this 
*/

 //developers server name for smtp host
 $config['smtp_host'] = 'smtp.gmail.com';

//smtp port
 $config['smtp_port'] = 587;

//smtp user
$config['smtp_user'] = '******@***.**';

//smtp password
$config['smtp_pass'] = '************';

/*
*mail type send to user
*/
$config['mailtype']="html";

/*
* Character set of the mail
*/
$config['charset'] = 'iso-8859-1';

/*
*Wordwrap flag of the mail
*/
$config['wordwrap'] = TRUE;

/*
New line character
*/
$config['newline']= "
";

Then in your controller

    $this->load->library('email');
    $this->email->from('*****@*******.****', '******');
    $this->email->to('******@********.****');
    $this->email->subject('email subject ');
    $this->email->message("my email messages");
    if($this->email->send()){
        echo "done";
    }