How-To Geek: Set Gmail as Default Mail Client in Ubuntu
Friday, May 11, 2007
Here's an incredibly helpful guide from the How-To Geek on setting Gmail as the default mail client in Ubuntu. This means, whenever you click an contact link (containing mailto:"") on a website, it will automatically open in Gmail as a new message. Here's the process:
Go to System -> Preferences -> Preferred Applications.
Under Mail Reader, select Custom, and then put this into the Command window, changing "username" to your username.
/home/geek/open_mailto.sh %s
Now, create a script in your home directory called open_mailto.sh (view the How-To to download the script):
Open a terminal and type in the following command, to make the script executable:
And there you have it! "Mailto:" links now open in gmail! Check out the full How-To @ howtogeek.com. Thanks How-To Geek!
Go to System -> Preferences -> Preferred Applications.
Under Mail Reader, select Custom, and then put this into the Command window, changing "username" to your username.
/home/geek/open_mailto.sh %s
Now, create a script in your home directory called open_mailto.sh (view the How-To to download the script):
#!/bin/sh
firefox "https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ’s/mailto://’`"
Open a terminal and type in the following command, to make the script executable:
chmod u+x ~/open_mailto.sh
And there you have it! "Mailto:" links now open in gmail! Check out the full How-To @ howtogeek.com. Thanks How-To Geek!
2
Comments:
will this work for epiphany?
Hmm... that is a good question. You could probably create a script to do the same with epiphany. You'd have to play with it. Not much of an epiphany user myself, so I can't really say.
commented by Anonymous, 2:45 PM