If you are like myself who no longer uses POP-3 email and a seperate client and prefers to use web-based GMail, then I have the simple solution for you to enable having GMail as the default system-wide email client in Ubuntu.
There is a tutorial which is quite old and dated now @ HowToGeek which requires using scripts and the command line to get this to work in Ubuntu with Firefox, but possibly due to improvements in Firefox since that article was written, I have found how to set this up in two(2) simple steps!
First:
Open Firefox and navigate to *Edit > Preferences > Applications* and scroll down to the *'mailto' *option and in the pull-down menu select *'GMail'*.
[B]Second:
[/B]In the *System* menu on the panel, navigate to *Preferences > Preferred Applications *and in the section for *'Mail Reader' *, select *'Custom'* and in the *'command' *box, enter *'firefox %s' *(without the quotes, of course).
Thats it. You are now done. No scripts, no command line. Test it out by clicking any link to send an email either in a web page or for example in Emesene/Pidgin Messenger for sending an email to someone and you should find that Firefox opens a compose email window with the recipient's email address there for you.
Enjoy.:D