[eluser]diez[/eluser]
Just to inform anyone that has run into this problem or might run into this problem.
you can not send email through CI using gmail smtp server because it requires a secure connection.
However, there are ways around this by creating your own email library by extending a 3rd party email script. I will shortly submit a ci library class that use swift mailer. With swift mailer you can perform a secure connection to gmail smtp server.
Hope this helps anyone.