gmail host name as 'mailhost' in pub.client:smtp service call.

Hi,

Can I use gmail smtp host name as input to ‘mailhost’ field in pub.client:smtp service call to send mails. Detail is given below:-

Outgoing Mail (SMTP) Server: smtp.gmail.com
Use Authentication: Yes
Use Secure Connection: Yes (this can be TLS or SSL depending on your mail client)
Username: GMail account
Password: your GMail password
Port: 465 or 587

What needs to be done to send mails by using pub.client:smtp service if I dont have my own mailhost.?