to use the gmail SMTP server for sending emails, you need to use Pear mail fore SMTP as the email object type.
you also need to enable authentication and use your gmail address as the username and your gmail password as the password.
the SMTP server address should be:
ssl://smtp.gmail.com
use port 465