Deep linking to gMail

I have been experimenting with deep linking to Google gMail directly from our webclient solution. The following seems to work:

//deep link to Google
var a = 'https://www.google.com/accounts/ServiceLoginAuth?';
var b = 'Email=';
var c =  gmail_name;
var d = '&Passwd=';
var e =  gmail_password;
var f = '&continue=';
var g = 'http://mail.google.com/mail';
var h = 'https%3A%2F%2Fgmail%2Egoogle%2Ecom%2Fgmail%3Fview%3Dcm%26fs%3D1%26tf%3D1#compose';
var i = '_self';

application.showURL(a + b + c + d + e + f + g, i);

//to deep link to Google compose (substitute h for g)

The “compose” option opens directly to a new outgoing gMail message. Now all we need is to place a contact’s e-mail address from our webclient solution into the outgoing e-mail. It would also be nice to be able to perform a deep link search to find all the e-mails sent to or received from a particular contact.

Does anyone know how to achieve this with webclient?

Dean Westover
Choices Software, Inc.

Google has Java API’s for many of their other stuff, but unfortunately not for GMail yet. They do have Atom Feeds, but that will only help you read mail, not send.

Normally you can interface with other apps in the browser by running client side javascript. So you could make a Frames page, or iFrames, and include the GMail page. Then run javascript to set the fields…but I tried that and Google doesn’t allow GMail to run inside of a frame :(

So, maybe some other things to look into…
PHP Contact List Grabber: http://sourceforge.net/projects/cl-grabber/
LibGMailer for PHP: http://sourceforge.net/projects/gmail-lite/

If you can read PHP code, you can probably browse their source, and see how thy are parsing the pages, and what URL’s they are using.