Came across a requirement of a project that the mail server is hosted on another server (such as gmail). To configure the outgoing email for SharePoint 2010 in this case requires setting up the virtual SMTP server with relay in IIS 6 and on Windows Server 2008.
Thank you Russell Wright for some good instructions here.