Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Mailto 2 Webmail

Makes "mailto" links open in your favorite web-based email account, instead of a pop-3 client (like Outlook, Eudora, Thunderbird, etc.) Supports Gmail, Yahoo Mail, and Google Apps Mail. [UPDATED (Again)!](Bug Fix)

Ok, so I don't use Outlook or Thunderbird or anything for my email. No pop-3 here.
So it really bugs me when I accidentally click a mailto link instead of cutting and pasting the address, and Outlook (unconfigured) pops up. It takes a while to load, and I'm not going to use it anyway. One night I had just had it! Well, then I remembered greasemonkey, and the 2-column Google script a friend of mine wrote. (link)

...So I wrote my own script to get mailto links to open in gmail instead of Outlook! This script works with Yahoo mail as well. I attempted to get it to work with Hotmail and Aim Mail, but to no avail. (Suggestions welcome.) With the script installed, try hovering over a mailto link. (Need a place to test it? Why not http://www.efoxdesigns.com/max/downloads? Hover over the email link at the top...)

## CONFIGURATION PLEASE READ ##

#To use this script with gmail: Just install! No configuration necessary.*

#To use this script with Google Apps Mail (for your domain): Set gmailDomain.

#To use with Yahoo mail: Install the script. Then, in greasemonkey's "Manage User Scripts", select and edit this script. Under "EDIT THIS ONLY", 1)change whichService to yahoo instead of gmail. 2)Then change yahooServer to be the server your account uses. Read the instructions provided.

*With any option, you can set showAlert equal to true, to get a notification any time Mail 2 Webmail comes across a page with mailto links on it. The notification even tells you the text of the mailto link!

[UPDATED] You can now set whether or not the new email composition will open in a new window/tab, or the current one. Just set openNewWindow to true or false.

[UPDATED](again) Sorry gmail users. Last time I made an update, I put a bug in where "mail"(usually) was being added to the end of the email addresses. Bug fixed!

[UPDATED] Now compatible with the new gmail ui system.

[UPDATED] Fixed a minor, rare bug, where Mailto 2 Webmail would not work on web-pages that had "Mailto" links instead of "mailto" links.(Note: The lower-case() function is part of XPath 2.0, but libxml only implements XPath 1.0. So, until GM/FF work with XPath 2.0, I cannot really fix this bug the "correct" way.)






Jun 26, 2008
gigajosh User

Thanks mr. Millard Wats, your edit got it working for me with the new Yahoo! mail interface. :)

 
Jun 18, 2008
Millard Wats... User

In the fixed section for yahoo mail I had to do the following changes to get the script to work for me.

var theElement = "http://" + yahooServer + ".mail.yahoo.com/dc/launch?action=Compose&To=";

this set of changes caused yahoo mail to open and then to open a compose page with the To address entered, and this was the graphical version not the original text based one.

 
Jun 9, 2008
dutch User

YEA!!! I got it working. I did what Atk said to do. His suggestion was the only one that worked. And it opens in Beta too. Thanks Max and Atk!

Now if only the "Send Link" would open in Yahoo. Anyone know of a script or addon for that fix?

 
Jun 6, 2008
Inhago User

I have found a solution to receive e-mails from my users, instead using mailto inside href tag, I found this website that let me create a form and send my user emails for me. NO needing of server side programming, they give me a link to put on my site.
the link is : www.nomailto.com

 
Jun 5, 2008
anonymous_user User

Works perfectly. Thanks.

 
Apr 27, 2008
nka User

Thanks, works like a charm with Gmail 2, FF3b5 & WinXP SP2.

 
Apr 23, 2008
jojopuppyfish User

Atk from April 16th did not work for me
The one below worked for me:

To get this working with Yahoo mail, I had to change the following (not sure if it's just me):

original:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/ym/Compose?To="; var begin; var subLength;

modified:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/mc/compose?to="; var begin; var subLength;

 
Apr 16, 2008
Atk User
Ah, I figured it out for the new Yahoo interface. Replace this line of code:
//var theElement = "http://" + yahooServer + ".mail.yahoo.com/ym/Compose?To="; var begin; var subLength;

with this line of code:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/dc/launch?action=compose&YY=212450813&login=1&intl=us&.intl=&To="; var begin; var subLength;

 
Apr 16, 2008
Atk User

Cool script, but how (or is it even possible) to link to Yahoo's new mail interface. Now, when I click on a mailto link, it fires up the old interface.

 
Apr 10, 2008
Fezzly User

This is the perfect script, wow bravo for you very nice.

 
Mar 23, 2008
Dave Baumgar... User

To get this working with Yahoo mail, I had to change the following (not sure if it's just me):

original:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/ym/Compose?To="; var begin; var subLength;

modified:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/mc/compose?to="; var begin; var subLength;

 
Mar 21, 2008
hawaiidiver User

I installed greasemonkey in order to use this script. Before I could edit the script using....greasemonkey wanted me to select an executable text editor. I accidentally set it to firefox. How do I change it to something else. I tried uninstalling greasemonkey but it went right back to firefox as the editor.

 
Mar 14, 2008
Gary Gilmore User

I downloaded 11324.user.js. When I tried to open it Vista said there was a problem with line 27: 'document' is undefined. So I can't get to the js to make it work for Yahoo Mail.

 
Mar 14, 2008
Kelly Holden User

Hmm. Appears to work as advertised, and with Ziru's suggestion takes me to all-new Y! mail (what used to be beta), which is how I prefer it, but a) it takes me to the US version for some odd reason (I have a yahoo.com.au address), and b) watching the status bar during loading strongly suggests that the request is rerouted a time or two, which I'm fairly sure makes it take longer than it needs to.

 
Mar 4, 2008
Renat User

How do you guys install this script? Firefox 2 simply promts save to hard drive dialog box and when I saved to the desktop and tested to a mail link it still opens outlook express instead of gmail. Can anyone help?
Thanks

 
Mar 2, 2008
Max (-El... Script's author

wmblewett: Fixed a minor bug. Try re-installing, and visiting that site again.

ahoier: I'm guessing that autoIT script is running BEFORE greasemonkey scripts, otherwise, it'd put the altered mailto script in the address bar. If you can have that script run AFTER Mailto 2 Webmail, then it would probably work. Also, I visited that link you posted, and from the looks of the screenshot, you may be able to have that script go to gmail instead of outlook?

 
Feb 28, 2008
wmblewett Scriptwright

This is not working on every page for me... it works on the URL listed to test it on, but the mailto on http://www.court.state.nd.us/court/counties/dc_... is bringing up outlook still

 
Feb 26, 2008
CB Scriptwright

Thanks a lot for this. It works perfectly!

 
Feb 22, 2008
Frappe User

I really want this to work, I keep getting Thunderbird opening. It just says to install. Is there an about:config that I need to adjust? Thanks for your help.

 
Feb 18, 2008
ahoier User

the autoIT script inputs, "mailto:name@domain.com" into the browser address bar. But Outlook opens.

Is there a way (without modifying the autoIT script) - to "redirect" mailto: commands in the firefox address bar, to Google (or another optional webmail compose window)?

I guess it's just one of those things, you'd have to "see" it- to know what I'm asking ;)

the script/app can be downloaded from http://complainterator.com/

 
Feb 17, 2008
Ziru Scriptwright

I also found that this script failed to work with Yahoo Mail beta.

Fortunately, the fix is simple. Change Line 70 from:
var theElement = "http://" + yahooServer + ".mail.yahoo.com/ym/Compose?To=";
to:
var theElement = "http://compose.mail.yahoo.com/?To=";

Thanks to Max for the great work!

 
Feb 6, 2008
Max (-El... Script's author

ahoier: I'm not sure what you're talking about. Maybe be a little bit more specific? Feel free to shoot me an email, describing what it is you're trying to do.

adam15c: There were some problems with the new Yahoo beta (and I think Hotmail, too). These use a lot of ajax and obfuscation, and I haven't had time to track down how to get to their new message composers.

jseppe: The script was designed primarily to open an email link the exact same way Outlook (or another pop3 client) would. Since Craigslist doesn't put the url or content of the ad in the mailto link, it does not put this information into the email composer (either pop3 or webmail). If you send me an email, I may modify the script for you, and maybe post it on userscripts under a different name.

 
Feb 5, 2008
ahoier User

Would it be possible to tie this into the address bar? I have an autoIT script I use, that uses mailto in the address bar, but Outlook 2007 opens with this script installed.

 
Feb 2, 2008
adam15c User

Keep getting the old Yahoo compose window. How do you get the new beta compose window to come up? Thanks.

 
Jan 18, 2008
jseppe User

Can the script be modified to add the option to insert the URL into the body of the message?

Thanks!!

You could comment on this script if you were logged in.