Set Domain Hosted Gmail as Default Mail Client in Ubuntu

I use gmail to host the email for corruptive.co.uk and just installed Ubuntu on a new laptop. In Firefox I want to use the right click menu to send links but Evolution is set in System>Preferences>Preferred Applications.

Mail Reader , Custom;
/home/mctt/open_mailto.sh %s

(replace mctt as needed)

The answer to how to change this is found here and subject to some geeky debate;
http://www.howtogeek.com/…mail-client-in-ubuntu/

The answer is to follow this guide replacing the https://mail.google.com/a/corruptive.co.uk/
with whatever your domain is.

So then select Applications > Accessories > Terminal

gedit /home/mctt/open_mailto.sh

Copy and paste the following from Jeff Waugh

#Keep it short and sweet, people. :-)

#!/bin/sh
FIREFOX=$(which firefox)
URL=$(echo $1 | sed 's#mailto:##;s#?#\&#;s#\&subject=#\&su=#i;')
$FIREFOX -remote "openurl(https://mail.google.com/a/corruptive.co.uk/mail?view=cm&tf=0&to=$URL)"

Save and close gedit.

Then in the Terminal give the script execute permissions;

chmod u+x ~/open_mailto.sh

Go and try it from Firefox.

No Comment

No comments yet

Leave a reply

Close
E-mail It