Send URLs Right To Gmail App With This Mobile Safari Bookmark [iOS Tips]

By

Send to Gmail Bookmarklet

So, you’re surfing along on your iPhone or iPad and you want to email your buddy a fantastic new site that you’ve found. You hit the Share button, and then curse because it sends it to the default iOS Mail app. But you use the Gmail app! How will you fix this horrible, first-world problem? With a bookmark, of course.

Here’s how.

First, launch Safari, and load a webpage. This one is fine. Now, tap on the Share button at the bottom of the screen, the icon that looks like a square with a curved arrow pointing up and out to the right. Tap on Bookmark, and then hit the X to delete whatever page title is auto-populated there. Type in something like Send To Gmail, then replace the URL in the next box down with the following code. I recommend you copying and pasting it to make sure it’s right, and all one line.

javascript:window.location='googlegmail:///co?subject='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(location.href);

Hit Save at the top to get out of the bookmark creation screen. You’ll end up back in Safari.

Now, whenever you’re humming along the information superhighway using your iOS device, you can tap on the Bookmarks icon at the bottom (it looks like a book), select Send to Gmail, and–if your Gmail app is running in the background–set up an email to send with the URL of the webpage you wanted to share and a subject that’s set to the title of that same webpage. Slick, huh?

Source: Mac Stories
Via: Macworld Hints

Newsletters

Daily round-ups or a weekly refresher, straight from Cult of Mac to your inbox.

  • The Weekender

    The week's best Apple news, reviews and how-tos from Cult of Mac, every Saturday morning. Our readers say: "Thank you guys for always posting cool stuff" -- Vaughn Nevins. "Very informative" -- Kenly Xavier.