- Published:August 8th, 2007
- Comments:No Comment
- Category:Tech
I was checking out a post on top 10 gmail tips and figured out a way to create a “compose mail” bookmarklet that will pop up a window to compose a mail through your Google Apps account.
I can’t really take credit for it, other than modifying one thing in the JavaScript to make it work for Google Apps.
Here’s the original bookmarklet code that works for gmail:
javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open (' https://mail.google.com/mail?view=cm&tf=0&to=&su=' ,'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,
status=no,resizable=yes');if (!document.all) T = setTimeout(' popw.focus()',50);void(0);
To make it work for your Google Apps account, you need to change the URL to whaterver your account URL is and one minor tweak. For example, most likely your Google Apps email URL after you log in is something like “http://mail.google.com/a/yourdomain.com/” so you change “https://mail.google.com/mail?view=cm&tf=0&to=&su=” to “https://mail.google.com/a/yourdomain.com/mail/?view=cm&tf=0&to=&su=” - note that you need to add a slash between “mail” and “?” also.
Here’s the modified code:
javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open (' https://mail.google.com/a/yourdomain.com/mail/?view=cm&tf=0&to=&su=' ,'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,
status=no,resizable=yes');if (!document.all) T = setTimeout(' popw.focus()',50);void(0);
Just change “yourdomain.com” to whatever you have in your Google Apps email URL, and you should be good to go. Of course, YMMV.
Another potentially easier way, is to just drag this link to your bookmarks bar, and then edit the properties of it and replace “yourdomain.com” with whatever.

Nessun Commento
No comments yet.