Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gmail url variables

Tags:

gmail

I've set up my mailto links so that they open Gmail.

// you can code a url like this to push things into gmail
https://mail.google.com/mail/?view=cm&fs=1&tf=1&[email protected]

I understand there are several other variables:

&su=   // email subject 
&body=  // body text
&disablechatbrowsercheck=1  // pretty self explanatory

The thing is I can't find a list anywhere with the possible ones.

Has anyone composed such a thing or found such a list.


Edit: You can now resort to classic mailto links to pass subject and body params:

<a href="mailto:[email protected]?subject=Your Subject&body=Your Message">email here</a>
like image 250
Frankie Avatar asked Aug 31 '10 18:08

Frankie


1 Answers

why bother doing that ? the mailto link will open the default mail client you have installed
i think having gmail notifier installed is enough
and that will be better to users with no gmail.
see here Making Gmail your default mail application or this Make mailto: links open in gmail
if not i found this example from here:

https://mail.google.com/mail?view=cm&tf=0" +
(emailTo ? ("&to=" + emailTo) : "") +
(emailCC ? ("&cc=" + emailCC) : "") +
(emailSubject ? ("&su=" + emailSubject) : "") +
(emailBody ? ("&body=" + emailBody) : "");

like image 132
yael alfasi Avatar answered Sep 30 '22 19:09

yael alfasi