If your requirement is to use the Gmail directly, just place one IFrame and redirect to gmail.com. If the user inputs the userid and password, you can move to the mailbox. This would be very easy.
You can use Pop3 to connect to gmail and download mails from Gmail server.
If you want to download mail from Gmail, you can use :
A POP3 Client in C# .NET[
^]
:rose: