A quick 3 simple steps to setup your Apple Mail to received and sending mail from Gmail account.
First of all, Log on your gmail account.
1. Click Setting
2. Click Forwarding/POP/IMAP, Consequently, Enable POP for all mail
3. Save Changes
Next, Open Apple Mail, Click on Mail and then Preferences
After that, Click + at the bottom to create a new account or
Go to File -> Add acounts
Key in your gmail address and passwords
Click Create when you had key in your info
Remember to Highlight Automatically set up account
So, it will help you to setup your SMTP and POP server
Done, My Gmail is receiving mails now
Is it pretty simple right?