Setting gmail as default mailto

tep
Contributor II

We used to use Google Notifier to set gmail as the default for all mailto links, but it has been discontinued. I've seen a few discussions regarding setting Outlook as the default mailto, but I'd like a way to push out a pref to use gmail in the browser.

With defaults read ~/Library/Preferences/com.apple.LaunchServices | grep -B 1 mailto I can see what the current default is, but am having trouble with the proper syntax to write a change. Has anyone done this?

-tep

6 REPLIES 6

bentoms
Release Candidate Programs Tester

have a look @ http://duti.org

mpermann
Valued Contributor II

If you're using Firefox as your web browser, there is a setting in Firefox -> Preferences -> Application -> mailto that you can set to "Use Gmail". There is a customization app called CCK wizard https://addons.mozilla.org/firefox/addon/cck/ that you might be able to use to set it automatically.

douglasnerad
New Contributor

In Terminal.app copy and paste the following, then hit enter (BTW, this should all be one line):
defaults write com.apple.LaunchServices.plist LSHandlers -array-add '{LSHandlerRoleAll=com.google.gmailnotifier;LSHandlerURLScheme=mailto;}';

jreeves
New Contributor III

Now that Duti is gone is there an easy way to set the default mail handler via jamf from 10.12 - 10.14? It doesn't seem like the defaults command works anymore in my testing.

rgranholm
Contributor

I'd like to know this myself, how do we do this now?

markdmatthews
Contributor

with Python 2.x being removed (and Python 3 no longer pre-installed) in macOS 12.3 or later I highly recommend using MailToOutlook 2.0 via: https://macadmins.software/tools/