# How can you create a mailto application?

**URL:** https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699
**Category:** Development
**Created:** [May 22, 2019, 4:47pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699 "2019-05-22T16:47:00Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ComputerWhiz](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/computerwhiz/32/20011_2.png) [@ComputerWhiz](https://discourse.mozilla.org/u/ComputerWhiz)
#### Post date: [May 22, 2019, 4:47pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/1 "2019-05-22T16:47:01Z")

</div>

I noticed that Firefox comes with Yahoo and Gmail emails as the default mailto options in the Firefox settings application section. I use Outlook webmail, so I’m looking to create an extension to add the Outlook webmail to the options, but I don’t know how.

I know you can really easily create new search engines for Firefox, so I would assume that creating a mailto option wouldn’t be difficult and would probably run along the same lines.

Any ideas how?

---

<div class="post-metadata">

### Author: ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)
#### Post date: [May 25, 2019, 9:41pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/2 "2019-05-25T21:41:21Z")

</div>

Last time I checked, neither Outlook nor Yahoo behaved correctly when sent the mailto: parameters in the format Firefox uses. So best I could do was right-click integration:

> **[Outlook Mail - mailto and Email Link Fix – Get this Extension for 🦊 Firefox...](https://addons.mozilla.org/en-US/firefox/addon/outlook-mail-email-link-fix/)**
>
> Download Outlook Mail - mailto and Email Link Fix for Firefox. BROKEN SINCE MAY 2023!! Right-click an email link to compose a new message on Outlook webmail. Right-click a blank area of the page to share a link to it. Pop-out style new tab needs to...

> **[Yahoo Mail - mailto and Email Link Fix – Get this Extension for 🦊 Firefox...](https://addons.mozilla.org/en-US/firefox/addon/yahoo-mail-email-link-fix/)**
>
> Download Yahoo Mail - mailto and Email Link Fix for Firefox. Right-click an email link to compose a new message in Yahoo mail. Right-click a blank area of the page to share a link to it. 
> 
> Does not work with the "Classic" mail layout. Not an official...

---

<div class="post-metadata">

### Author: ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)
#### Post date: [May 25, 2019, 9:53pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/3 "2019-05-25T21:53:48Z")

</div>

If you don’t want to use an existing solution, the web ext API is [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/protocol\_handlers](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/protocol_handlers)

If you’re a website that wants to offer this, use [https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)

---

<div class="post-metadata">

### Author: ![ComputerWhiz](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/computerwhiz/32/20011_2.png) [@ComputerWhiz](https://discourse.mozilla.org/u/ComputerWhiz)
#### Post date: [May 26, 2019, 2:44am UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/4 "2019-05-26T02:44:42Z")

</div>

@freaktechnik Exactly what I was looking for! Can’t believe I missed that in the documentation. Thanks!

---

<div class="post-metadata">

### Author: ![ComputerWhiz](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/computerwhiz/32/20011_2.png) [@ComputerWhiz](https://discourse.mozilla.org/u/ComputerWhiz)
#### Post date: [May 26, 2019, 2:45am UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/5 "2019-05-26T02:45:15Z")

</div>

@jscher2000 Yahoo email comes as a default option in Firefox now.

---

<div class="post-metadata">

### Author: ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)
#### Post date: [May 26, 2019, 3:07pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/6 "2019-05-26T15:07:03Z")

</div>

Yes, but clicking an email link using the built-in Yahoo handler generates this URL:

[https://compose.mail.yahoo.com/?To=mailto:friend@example.com](https://compose.mail.yahoo.com/?To=mailto:friend@example.com)

Yahoo doesn’t transfer the address to the new message compose form. But we have WONTFIX here: [https://bugzilla.mozilla.org/show\_bug.cgi?id=1494105](https://bugzilla.mozilla.org/show_bug.cgi?id=1494105)

So I created the extension and it sends this instead:

[https://mrd.mail.yahoo.com/compose/?to=friend@example.com](https://mrd.mail.yahoo.com/compose/?to=friend@example.com)

---

<div class="post-metadata">

### Author: ![Guenther\_Schreiner](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@Guenther\_Schreiner](https://discourse.mozilla.org/u/Guenther_Schreiner)
#### Post date: [February 21, 2020, 9:09am UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/7 "2020-02-21T09:09:40Z")

</div>

Hello @jscher2000,

could you please share this extension as we’d like to create a similar extension for a local webmail infrastructure?

Regards, Guenther

---

<div class="post-metadata">

### Author: ![ComputerWhiz](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/computerwhiz/32/20011_2.png) [@ComputerWhiz](https://discourse.mozilla.org/u/ComputerWhiz)
#### Post date: [February 21, 2020, 3:21pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/8 "2020-02-21T15:21:07Z")

</div>

If your internal email is an Outlook-based email, i made this extension, which should work in most cases. [https://github.com/WesleyBranton/Outlook.com-mailto](https://github.com/WesleyBranton/Outlook.com-mailto)

Otherwise, feel free to adjust that one to meet your needs. It’s very specific to Outlook email, but you should be able to adapt it to suit your needs.

---

<div class="post-metadata">

### Author: ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)
#### Post date: [February 21, 2020, 3:45pm UTC](https://discourse.mozilla.org/t/how-can-you-create-a-mailto-application/40699/9 "2020-02-21T15:45:30Z")

</div>

> [@Guenther\_Schreiner](#):
>
> could you please share this extension

I’m not sure what you mean by “share”? The links to the extensions’ source code repositories are on the left sides of my pages on the Add-ons site (“Homepage”).
