GMailIt

Technical

About a week ago, I wrote about a bookmarklet I had bastardized to facilitate my process for adding a new Google bookmark (GMark). Today I decided to take that same approach to automating a different process.

I constantly find myself visiting URIs that I want to share, for one reason or another, with someone else. Maybe it's a goofy t-shirt, maybe it's an amusing perspective on something or maybe it's that universal TiVo remote that I want someone to buy me. Whatever it is, I wanted an easy way to send it. Since GMail is my mail client of choice, I wanted an easy way to send it using GMail.

Similar to the example I already had, this bookmarklet will launch a GMail "Compose Message" window using the page title as the subject and will add any selected text and the page URI to the body of the message.

If you want to use it, just drag the GMailIt link into the bookmarks toolbar of your browser.

${EDIT} . One of the things I'd like to do with this bookmarklet is insert a double space between the text and the URI in the body of the message. Unfortunately, I cannot seem to find a way to do this. I've tried every combination of \n, \r and %0D%0A I can think of: URL encoded, URL decoded, in quotes, out of quotes, one without the other, both together, etc. You get the idea. If anyone takes a look at this and can get that part to work I'd love to hear about it. And, of course, update my link accordingly.

${UPDATE} . Curiously enough...it just started working (at least on Windows). The carriage return thing, I mean. I didn't make any changes. Maybe something was cached funny? Anyway, it's now doing what I intended it to do. I'll test it on Mac tonight.

tags:
Projects, gmail

Search

Rob  Wilkerson