Set Gmail as the default Mail Client

Source: Internet
Author: User
Set Gmail as the default mail client-Linux general technology-Linux technology and application information. The following is a detailed description. This is a very useful tips for friends who use Gmail everyday. This tip will guide you how to set Gmail as the default email client in Linux. After this setting, it makes it easier for us to use Gmail. For example, click the email address to go to The Gmail email writing interface.

You need to create a shell script with the following content:

#! /Bin/sh
Firefox https://mail.google.com/mail? View = cm & tf = 0 & to = 'echo $1 | sed's/mailto ://''

If you want to open it in the new tag of the existing Firefox window, replace it with the following content:

Firefox-remote "openurl (https://mail.google.com/mail? View = cm & tf = 0 & to = 'echo $1 | sed's/mailto: // '', new-tab )"

Save the script as open_mailto.sh and add the executable permission:

Chmod u + x ~ /Open_mailto.sh

Click System → Preferences → Preferred Applications, select Custom Under Mail Reader, and enter/home/username/open_mailto.sh % s on the Right of Command. Note that you need to replace the username with your own.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.