问题
I found a post that provides an example for a link which opens just a compose message window. However, I would like it to open a window with the full Gmail interface but ready to compose a new message.
Of course this works:
https://mail.google.com/mail/u/0/#compose
But, I would also like to add a subject, to, bcc, etc. I tried something like the following, but to no avail:
https://mail.google.com/mail/?to=inbox@example.com&bcc=admin@example.com&subject=Hey#compose
Any ideas? Thanks.
回答1:
This seems to work (for now):
https://mail.google.com/mail/?view=cm&fs=1&to=someone@example.com&su=SUBJECT&body=BODY&bcc=someone.else@example.com
回答2:
Bookmarking this URL should give you a full-screen compose window, without any distractions:
https://mail.google.com/mail/?view=cm&fs=1&tf=1
Additionally, if you want to be future-proof (see for instance how other URLs in this question stopped working) you can bookmark a link to:
mailto:
It will open your default email client and you probably already have Gmail configured for that purpose.
回答3:
https://mail.google.com/mail/u/0/x/?&v=b&eot=1&pv=tl&cs=b
This link works for composing directly in m.gmail.com as mobile in a desktop browser. Why? It is really faster.
回答4:
It's worth pointing out that if you have multiple Gmail accounts, you may want to use the URL approach because you can customize which account to compose from.
e.g.
https://mail.google.com/mail/u/0/#inbox?compose=new
https://mail.google.com/mail/u/1/#inbox?compose=new
回答5:
For Chrome:
- Set your email manager to Gmail

- Write mailto: in the address bar and press enter.
Easier:
- Edit search engines:


- Write mt and enter in address bar.
回答6:
The GMail web client supports mailto:
links
For regular @gmail.com
accounts: https://mail.google.com/mail/?extsrc=mailto&url=...
For G Suite accounts on domain gsuitedomain.com
: https://mail.google.com/a/gsuitedomain.com/mail/?extsrc=mailto&url=...
...
needs to be replaced with a urlencoded mailto:
link.
Demo: https://mail.google.com/mail/?extsrc=mailto&url=mailto%3A%3Fto%3Dsomeguy%40gmail.com%26bcc%3Dmyattorney%40gmail.com%2Cbuzzfeed%40gmail.com%26subject%3DHi%2520There%26body%3Dbody%2520goes%2520here
Learn more about mailto: links by reading RFC6068
回答7:
The example URLs for standard gmail, above, return a google error.
The February 2014 post to thread 2583928 recommends replacing view=cm&fs=1&tf=1
with &v=b&cs=wh
.
Note: It also no longer seems possible to autopopulate the mail body.
回答8:
When you click on compose email in Gmail notice that the url changes from https://mail.google.com/mail/u/0/#inbox to https://mail.google.com/mail/u/0/#inbox?compose=new. Now when you enter say a email id xyz@gmail.com , the value for compose changes now the url became https://mail.google.com/mail/u/0/#inbox?compose=150b0f7ffb682642.
So this is working fine with my html hyperlink until the account is signed in, but if the account is not signed in it would take me the login page and when I enter the credentials somehow this compose value is lost and this does not work.
来源:https://stackoverflow.com/questions/6548570/url-to-compose-a-message-in-gmail-with-full-gmail-interface-and-specified-to-b