Link to compose new email in gmail

Alec Jacobson

August 14, 2009

weblog/

This is certainly no secret or hack and in fact is well known and documented all over the web. Nonetheless I'll post it here. Clicking on this link will open a new window and compose a new message in gmail. If you aren't signed in you will be prompted to sign in, but after you sign in you'll immediately be composing an email (not viewing your inbox as default). https://mail.google.com/mail/?fs=1&view=cm&shva=1&su= Note: If you want to program with this just start adding values to the end of the url above. I have already added a blank subject by ending the above url with &su=, so to add a subject just add a string to the end of the url above. For body, to, cc, and bcc fields use &body=, &to=, &cc=, &bcc= all with strings after word. Depending on your browser you may need to URI escape your field values.