June 25, 2004

g-mailto bookmarklet

Following the lead of Rabid Squirrel’s g-mailto, I worked up a bookmarklet to pop up a new message window off my browser toolbar. I’ve only tested this on IE6 for Windows, but it’s the standard javascript stuff, so it should work everywhere. Here you go…

» Drag this link to your toolbar: g-mailto);)

If you read the Rabid Squirrel definition of field variables (to, cc, bcc, subject, body, etc.) you could probably modify the link above to fit your particular email needs. I haven’t yet mucked about to see if it’s possible to pull page titles or selected text from the browser and force it into message fields, but if that’s possible the bookmarklet could become a great way to have the “send page by email” function via Gmail.

Update. Lazyweb to the rescue! The ever-resourceful Adam Mathes hacked up an improvement that pulls the current page’s title and inserts into the subject line, inserts the page URL and any selected text into the body of the message. You can grab it here, or just do the drag thing again…

» Drag this link to your toolbar: g-mailit

I’ve got both of these living side by side now. One for quick access to a blank message (g-mailto), the other for “mail this page” functionality (g-mailit).

Enjoy.