Application - mailto: two Gmail accounts?
- selvan777
- Posts: 132
- Joined: December 4th, 2004, 10:08 am
- Location: Folsom, CA
Application - mailto: two Gmail accounts?
Is it possible?
It's probably been brought up before, and I'm sorry if it's so. Did do lots of searching around but most all the multiple accounts I find are not relating to this.
I have Use His Gmail, Use Yahoo! Mail, and Use other. My setting is Always ask and Gmail opens a new message in my account ready for me to type. Well, my wife and I share the same laptop (no separate windows user acct) and would like to add Use Her Gmail, if it's possible. I've been editing mimetypes.rdf but can't find a way.
Thanks
Firefox 7.0.1
It's probably been brought up before, and I'm sorry if it's so. Did do lots of searching around but most all the multiple accounts I find are not relating to this.
I have Use His Gmail, Use Yahoo! Mail, and Use other. My setting is Always ask and Gmail opens a new message in my account ready for me to type. Well, my wife and I share the same laptop (no separate windows user acct) and would like to add Use Her Gmail, if it's possible. I've been editing mimetypes.rdf but can't find a way.
Thanks
Firefox 7.0.1
always with the latest version of Firefox & her Add-ons
-
- Posts: 6215
- Joined: February 3rd, 2009, 6:29 pm
Re: Application - mailto: two Gmail accounts?
Are you using multiple accounts simultaneously?
If so, then try using the Gmail account_id parameter. (not tested)
Add entry as an application for mailto links in Firefox 6.0/7.0/8.0
1. open about:config
2. set gecko.handlerService.allowRegisterFromDifferentHost to true
3. tools > web developer > scratchpad
4. environment > content
5. edit > paste (i.e. copy and paste code below)
6. execute > run
Access two Gmail accounts at once in the same browser
http://gmailblog.blogspot.com/2010/08/a ... ce-in.html
Using multiple accounts simultaneously
http://www.google.com/support/accounts/ ... opic=28776
Preference gecko.handlerService.allowRegisterFromDifferentHost
http://kb.mozillazine.org/Gecko.handler ... ferentHost
Introducing Scratchpad
http://blog.mozilla.com/devtools/2011/0 ... cratchpad/
Add entry as an application for mailto links in Firefox 3.6/4.0/5.0
http://www.techsupportforum.com/forums/ ... ost1960946
If so, then try using the Gmail account_id parameter. (not tested)
Add entry as an application for mailto links in Firefox 6.0/7.0/8.0
1. open about:config
2. set gecko.handlerService.allowRegisterFromDifferentHost to true
3. tools > web developer > scratchpad
4. environment > content
5. edit > paste (i.e. copy and paste code below)
6. execute > run
Code: Select all
var title = "Use Her Gmail";
var email = "example@gmail.com";
navigator.registerProtocolHandler("mailto", "https://mail.google.com/mail/?account_id=" + encodeURIComponent(email) + "&extsrc=mailto&url=%s", title);
Access two Gmail accounts at once in the same browser
http://gmailblog.blogspot.com/2010/08/a ... ce-in.html
Using multiple accounts simultaneously
http://www.google.com/support/accounts/ ... opic=28776
Preference gecko.handlerService.allowRegisterFromDifferentHost
http://kb.mozillazine.org/Gecko.handler ... ferentHost
Introducing Scratchpad
http://blog.mozilla.com/devtools/2011/0 ... cratchpad/
Add entry as an application for mailto links in Firefox 3.6/4.0/5.0
http://www.techsupportforum.com/forums/ ... ost1960946
- selvan777
- Posts: 132
- Joined: December 4th, 2004, 10:08 am
- Location: Folsom, CA
Re: Application - mailto: two Gmail accounts?
Thanks!
I had a look at those pages you posted but still need more help, sorry. I tried the code as is and also replaced "example" with her actual username. In either case, whether I choose His or Hers, it's my account that's used, regardless of whom signed-in last in the same browser session.
We have been accessing both our accounts simultaneously in the same browser with no issues.
My first attempt some time back to accomplish this was following the instructions here where I did it for mine first. All attempts to do the same for hers next also still will only utilize my account regardless.
I had a look at those pages you posted but still need more help, sorry. I tried the code as is and also replaced "example" with her actual username. In either case, whether I choose His or Hers, it's my account that's used, regardless of whom signed-in last in the same browser session.
We have been accessing both our accounts simultaneously in the same browser with no issues.
My first attempt some time back to accomplish this was following the instructions here where I did it for mine first. All attempts to do the same for hers next also still will only utilize my account regardless.
always with the latest version of Firefox & her Add-ons
-
- Posts: 6215
- Joined: February 3rd, 2009, 6:29 pm
Re: Application - mailto: two Gmail accounts?
Okay. I got it working.
The following links open the 1st and 2nd account, respectively, when using Gmail multiple sign-in.
https://mail.google.com/mail/u/0/?extsrc=mailto
https://mail.google.com/mail/u/1/?extsrc=mailto
Remember to change the gecko.handlerService.allowRegisterFromDifferentHost preference back to false.
The following links open the 1st and 2nd account, respectively, when using Gmail multiple sign-in.
https://mail.google.com/mail/u/0/?extsrc=mailto
https://mail.google.com/mail/u/1/?extsrc=mailto
Code: Select all
navigator.registerProtocolHandler("mailto",
"https://mail.google.com/mail/u/0/?extsrc=mailto&url=%s",
"Use His Gmail");
Code: Select all
navigator.registerProtocolHandler("mailto",
"https://mail.google.com/mail/u/1/?extsrc=mailto&url=%s",
"Use Her Gmail");
Remember to change the gecko.handlerService.allowRegisterFromDifferentHost preference back to false.
- selvan777
- Posts: 132
- Joined: December 4th, 2004, 10:08 am
- Location: Folsom, CA
Re: Application - mailto: two Gmail accounts?
Thanks a bunch, I got the two entries in the list with no problem and it works like a champ. But, unfortunately, it goes crazy after a restart, ie:
1. I click a mailto, select Hers, and I get the Google's account sign in page: Accounts, Sign in to another account, You are signed in to these accounts: her@gmail.com
2. I sign in using her account and it works.
3. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page.
4. I close the tab, click a mailto, select His, and it works but is using Her account.
5. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page.
6. I sign in using His account and it works but is using Her account.
7. I close the tab, click a mailto, select His, and it works but is using Her account.
8. I close the tab, click a mailto, select Hers, and it works but is using His account.]
I delete the cookies and restart the browser:
1. I click a mailto, select His, and I get Google's Gmail page: A Google approach to email.
2. I sign in using His account and it works.
3. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page: : Accounts, Sign in to another account, you are signed in to these accounts: his@gmail.com
4. I sign in using her account and it works but is using His account.
5. I close the tab, click a mailto, select Hers, and it works.
6. I close the tab, click a mailto, select His, and it works.
1. I click a mailto, select Hers, and I get the Google's account sign in page: Accounts, Sign in to another account, You are signed in to these accounts: her@gmail.com
2. I sign in using her account and it works.
3. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page.
4. I close the tab, click a mailto, select His, and it works but is using Her account.
5. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page.
6. I sign in using His account and it works but is using Her account.
7. I close the tab, click a mailto, select His, and it works but is using Her account.
8. I close the tab, click a mailto, select Hers, and it works but is using His account.]
I delete the cookies and restart the browser:
1. I click a mailto, select His, and I get Google's Gmail page: A Google approach to email.
2. I sign in using His account and it works.
3. I close the tab, click a mailto, select Hers, and am again taken to the account sign in page: : Accounts, Sign in to another account, you are signed in to these accounts: his@gmail.com
4. I sign in using her account and it works but is using His account.
5. I close the tab, click a mailto, select Hers, and it works.
6. I close the tab, click a mailto, select His, and it works.
always with the latest version of Firefox & her Add-ons
-
- Posts: 6215
- Joined: February 3rd, 2009, 6:29 pm
Re: Application - mailto: two Gmail accounts?
* Login to the "His" account
* Access personal settings
Is multiple sign-in "On" or "Off"?
http://www.google.com/accounts
* Access personal settings
Is multiple sign-in "On" or "Off"?
http://www.google.com/accounts
-
- Posts: 6215
- Joined: February 3rd, 2009, 6:29 pm
Re: Application - mailto: two Gmail accounts?
The following links open the "His" and "Her" account, respectively, when using Gmail multiple sign-in.
https://mail.google.com/mail/b/his@gmai ... src=mailto
https://mail.google.com/mail/b/her@gmai ... src=mailto
The "mail/u/0" url depends on the login order. 0 is the "default" account.
The "mail/b/his@gmail.com" url does not depend on the login order.
https://mail.google.com/mail/b/his@gmai ... src=mailto
https://mail.google.com/mail/b/her@gmai ... src=mailto
Code: Select all
navigator.registerProtocolHandler("mailto",
"https://mail.google.com/mail/b/his@gmail.com/?extsrc=mailto&url=%s",
"Use His Gmail");
Code: Select all
navigator.registerProtocolHandler("mailto",
"https://mail.google.com/mail/b/her@gmail.com/?extsrc=mailto&url=%s",
"Use Her Gmail");
The "mail/u/0" url depends on the login order. 0 is the "default" account.
The "mail/b/his@gmail.com" url does not depend on the login order.
- selvan777
- Posts: 132
- Joined: December 4th, 2004, 10:08 am
- Location: Folsom, CA
Re: Application - mailto: two Gmail accounts?
Morat, you are awesome!!!
I've been searching and probing and tweaking to no avail for you can't imagine how long to get this thing in an acceptable condition, I thank you so so very much.
I've had multiple sign-in on for all the while, I could open two instances of one account in two separate tabs, delete a message in one and still be able to open it in the other, as long as I don't refresh the page that is.

I've been searching and probing and tweaking to no avail for you can't imagine how long to get this thing in an acceptable condition, I thank you so so very much.
I've had multiple sign-in on for all the while, I could open two instances of one account in two separate tabs, delete a message in one and still be able to open it in the other, as long as I don't refresh the page that is.

always with the latest version of Firefox & her Add-ons
-
- Posts: 6215
- Joined: February 3rd, 2009, 6:29 pm
Re: Application - mailto: two Gmail accounts?
You're welcome.
I used Google code search to find the syntax
selvan777 wrote:been searching... to no avail for you can't imagine how long
I used Google code search to find the syntax

-
- New Member
- Posts: 1
- Joined: August 19th, 2012, 5:38 pm
Re: Application - mailto: two Gmail accounts?
Thanks! Been wanting to do this for a long time.
- DanRaisch
- Moderator
- Posts: 126871
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Application - mailto: two Gmail accounts?
Thanks for your comment but you've replied to a thread that's been dead for nine months.
Locking this due to the age of the original posts.
Locking this due to the age of the original posts.