I have a problem with gmail in the n810 mail program in Diablo. It keeps saying me bad ID or password but i'm sure they are good, i can even log into googletlk with them. The name of the server is good (pop.gmail.com) and the port too (995). I tried with imap and i got the same result.
Are you sure you have ALL the settings right? There is more than just a port and server check out this, it has your settings for Gmail. As a side note you do have POP enabled in Gmail don't you...
Any ideas?