MozillaZine

Default mail client

From MozillaZine Knowledge Base

This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).

The default mail client is the program that opens when you click a link in another application to send a mail message, for example, when you click on a mailto link or when you click File -> Send link" in Firefox. Note that the default mail client is not as much of an issue when using Mozilla Suite/SeaMonkey because the browser and mail components are integrated (e.g., a mailto link in a SeaMonkey browser window should open SeaMonkey Mail, regardless of your default mail client).

This article describes how to configure Thunderbird as the default e-mail client. However, you must also configure any other e-mail clients you run to not attempt to be the default e-mail client or it will have no effect. For example, in Outlook Express you may need to press a button in "Tools -> Options -> General -> Default Messaging Programs" to make the dialog box say "This application is NOT the default mail handler". Note that the calendar in Outlook will not work unless Outlook is the default email client.

You do not need to make Thunderbird the default email client in order to send/receive email. It's used mainly to allow other applications to use Thunderbird to send a message by making SimpleMAPI calls (if your operating system supports MAPI) , or by your clicking on a mailto: URL (in a browser). It also associates Thunderbird with the .EML file extension under Windows (if you're running 1.5 or later) so that if you double click on a .EML file its displayed in Thunderbird.

Note: If you receive a message such as Firefox doesn’t know how to open this address because the protocol (mailto) isn’t associated with any program. that means that no mail client is currently set as the default and you will need to set one. [1]

Contents

Windows

In Thunderbird, go to "Tools -> Options -> General" and select "Use Thunderbird as the default mail application". (In the Mozilla Suite, go to "Edit -> Preferences -> Mail & Newsgroups" and select "Use Mozilla Mail as the default mail application".) If that doesn't take effect right away, try restarting Thunderbird or even the computer once.

If that still doesn't work then another email client (such as Outlook or Windows Mail) is probably also configured to be the default email client. If you're running Windows 2000 SP3 or later (or Windows XP) go to "Start -> Control Panel -> Add/Remove Programs -> Set Program Access and Defaults [on the left] -> Custom", and set "Mozilla Thunderbird" as your default e-mail application. If you're using Windows Vista go to "Start -> Default Programs -> Set Program Access and Computer Defaults" and set "Mozilla Thunderbird" as your default e-mail application.

If you're running Windows XP another solution would be to download the DefaultMail utility and use it to set the default e-mail client. It can also do this on a per-user basis[2]. That's useful if several people share a machine (with their own Windows user account) and each wants to use a different e-mail client as the default e-mail client.

If none of these methods work it might be because your windows account doesn't have the rights to modify the registry. Try using the "run as" command to temporarily run a command/application as a administrator.

For more information:

  • Microsoft support site: [3], [4]

Linux

Linux - Gnome

  • Go to "Applications -> Desktop Preferences -> Advanced -> Preferred Applications".
  • Select "Custom Mail Reader", and type "thunderbird %s" in the box. You should replace "thunderbird" by the full path to the thunderbird executable if it is not in the PATH.

If the above menus are not available to you, another way to do it is through the GNOME Configuration Editor:

  1. Run the GNOME Configuration Editor using the command "gconf-editor" (this can be done from a console).
  2. Navigate to "/desktop/gnome/applications/url-handlers/mailto" (on some systems, this may be "/desktop/gnome/url-handlers/mailto")
  3. Edit the "command" field and change it's value to "thunderbird %s" (or "mozilla-thunderbird %s", depending on your system). If thunderbird is not in your PATH, then specify the full path to the thunderbird executable (I'd suggest just having thunderbird in your path).
  4. Make sure that the "enabled" field is checked.
  5. Make sure that the "needs_terminal" field is unchecked.
  6. Close it.
  7. You're done. :-D

I used this approach on SuSE Linux 10.0 under GNOME.

Linux - KDE

Opening a mail client, be that Thunderbird or some other email client, can take place either from within integrated KDE applications and "KDE-aware" applictions, or applications like Firefox that do not check KDE's preference settings. In the latter case like Firefox, one must set those preferences directly in the application.

For both cases, the first step is to determine where in your Linux filesystem the desired mail client resides. You will probably want to write this down since in some cases a Modal window or dialog box will be open, sometimes preventing actions to find the Full Path you need.

In my case, from a terminal window, I ran "type kmail" (without the quotes), though you might wish to enter "type thunderbird".
Answer was: /usr/bin/kmail
Note: "whereis kmail" (or whereis thunderbird) will return more answers than just the location of the executable "program".

Setting email client for Firefox in Linux

These steps will allow opening your desired email client in Linux when operating in Firefox and using its menus, or when activating an email link on a Firefox page:

  1. In Firefox's Location (URL) Bar, enter "about:config" and then press <enter> or click "Go".
  2. With the cursor in the body of the resulting page, <right-click> the mouse.
  3. From the pop-up menu, select "New".
  4. From the next pop-up menu, select "String".
  5. In the pop-up dialog box "Enter preference name", enter network.protocol-handler.app.mailto (without quotes), and click "OK" (You might wish to cut-and-paste that phrase to ensure correct spelling).
  6. In the pop-up dialog box "? network.protocol-handler.app.mailto", enter /usr/bin/kmail [or the actual filesystem location of your desired email client] and click "OK". This should be the Full Path of the program, i.e. /usr/bin/kmail, not just the path /usr/bin.

Without restarting Firefox, you can test by opening or switching to another tab. from the Firefox top menu select, "File -> Send Link". Your desired email client should open.

If that doesn't happen, redo your steps, ensuring the spelling of your entries is correct, and ensure the actual Full Path of your desired mail client is entered.

Setting email client for KDE applications

These steps will allow opening your desired email client when operating in an integrated KDE or KDE-aware applicaion.

We need to open the KDE Control Center. Depeneding upon how your menu system is layed out this might be done through one of several selection paths, starting from the bottom Task Bar:

  • "K (start) -> System -> Configuration Editor"
  • "K (start) -> Configuration Editor"

With the KDE Configuration Editor open, now:

  1. Select "Components -> KDE Components -> Component Chooser".
  2. In the left list box, select "Mail Client".
  3. Check the radio button "Use a different email client".
  4. In the text box below that radio button, type the Full Path (Like /usr/bin/kmail), not just the path, to the executable program of your desired email client in the box - be that Thuderbird or something else.
  5. At the bottom of the dialog box, click "Apply".
  6. Close the KDE Configuration Editor.

Mac OS X

  1. Start Mail.app.
  2. In Mail.app, choose "Preferences" from the menu.
  3. Click the "General" icon, and choose "Thunderbird" from the default mail reader pop-up menu. If you dont see Thunderbird in the list, make sure it is in the "Applications" folder.

You can also use More Internet.

See also