gmail url variables

2020-05-24 05:05发布

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&to=user@example.com

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:a@example.net?subject=Your Subject&body=Your Message">email here</a>

标签: gmail
2条回答
一夜七次
2楼-- · 2020-05-24 05:42

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) : "");

possible parameters here
G-Mailto

查看更多
趁早两清
3楼-- · 2020-05-24 05:42

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.

查看更多
登录 后发表回答