in reply to Sending mails via gmail

If you are too lazy to look up information, go with Net::* module. It will talk directly to Google Mail SMTP server, which will remove your local set up in case you would need to debug things.