Sunday, March 28, 2010

Open mailto links in GMail with Google Chrome, Firefox and maybe Safari.

Here is a simple bookmarklet that when clicked will turn all mailto: links on a webpage into javascript pop-up windows for a gmail compose message with the to, subject and body filled out. The main thing is that it works with craigslist. :)

For those looking for a simple solution, just drag this link onto your bookmark bar:
GMail Mailto

To use it, open a webpage with a mailto link on it and then click the bookmarklet. Now when you mouse-over a mailto link you will notice that it is now a javascript function instead. Clicking it will open up a GMail compose window.

For those interested in the code:

If anyone knows how GMail handles other fields like CC, BCC, etc. let me know and I'll add the code to the bookmarklet. I can make some educated guesses, but without a webpage to test against i don't want a broken script posted on this blog.

No comments:

Post a Comment