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/[email protected]&[email protected]&subject=Hey#compose
Any ideas? Thanks.
This question is related to
hyperlink
gmail
google-apps
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
Or if you know the email address you are sending from, replace the numeric index with the email address:
https://mail.google.com/mail/u/[email protected]/#inbox?compose=new
For Chrome:
Easier:
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.
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.
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.
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.
Many others have done an excellent job here giving a basic answer, especially Tobias Mühl. As mentioned, GMail's Api very closely matches the definition given by RFC2368 and RFC6068. This is true of the extended form of the mailto: links, but it's also true in the commonly-used forms found in the other answers. Of the five parameters, four are identical (such as to
, cc
, bcc
and body
) and one received only slight modification (su
is gmail's version of subject
).
If you want to know more about what you can do with mailTo gmail URLs, then these RFCs might be of help. Unfortunately, Google has not published any source themselves.
To clarify the parameters:
to
- Email to whosu
(gmail API) / subject
(mailTo API) - Email Titlebody
- Email Bodybcc
- Email Blind-Carbon Copycc
- Email Carbon Copy addressWhen 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 [email protected] , 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.
Source: Stackoverflow.com