为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

mailto links use Yahoo Compose

more options

When I click a mailto link it brings up the GMail app. Instead I want the Yahoo Compose window. Several posts suggest various arcane methods. Either they do not apply or they require hacking. Has the situation improved?

How can I make mailto links go to the Compose window on mail.yahoo.com?

When I click a mailto link it brings up the GMail app. Instead I want the Yahoo Compose window. Several posts suggest various arcane methods. Either they do not apply or they require hacking. Has the situation improved? How can I make mailto links go to the Compose window on mail.yahoo.com?

所有回复 (8)

more options

None of the advice in this answer relates to reality.

In the section "Setting the mail client used by Firefox" it shows half a dozen options for "mailto". But when I look all I find are "Always Ask", "Use Firefox (default)", and "Use Other ...". None of these helps.

Section "Setting your operating system's default mail program" suggests "Click the icon under the heading Email to show your choices." The only choice I get is FireFox.

The third section suggests "webmail client" but I just want to use Yahoo mail. It is not clear what a webmail client IS.

more options

Webmail = email website, so that would be the relevant one.

If you didn't want to use an add-on, you face two problems:

(1) Determining the proper URL for composing a new message.

For Yahoo, you can test whether this still works:

https://compose.mail.yahoo.com/mrd/mailto:bob@example.com

(Template form: "https://compose.mail.yahoo.com/mrd/%s")

(2) Adding the URL (in template form) to Firefox

There isn't a straightforward interface for this. The URL will end up in the handlers.json file, but the old tricks for getting Firefox to add it haven't been working as well in recent years. I can try to find a new method (but probably not today).

more options

Yes, the compose.mail.yahoo.com link works just fine. Is that a webmail link, or is the webmail link mail.yahoo.com?

> (but probably not today)

It took me a while to get around to posting the issue, so another couple of days or weeks is not a problem. Should I post the problem to Bugzilla?

Fred Hansen

more options

So one way to add a new mailto destination, also called a URI handler, without installing an add-on, is to run a script in Firefox's Browser Console, one of the developer tools. This requires a settings change to switch the console from read only to read/write. Because scripts run in the console can use interfaces that are totally illegal for web pages to use, you definitely need to be very careful about what scripts you run so that you don't infect your browser.

I posted the script here: https://gist.github.com/jscher2000/8a9112b1c03af77f6b3b63b1296bd864

more options
more options

Yes, the two previous replies will probably work. And I ran across them during my initial search. They are among the solutionsI described in the original post as, "they require hacking." There needs to be a method for mere mortals.

more options

Either hack now, or wait until Yahoo adds a tag to their pages telling Firefox what to add, like Microsoft does: