gmail url variables

限于喜欢 提交于 2019-12-03 09:59:00

问题


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>

回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/3611937/gmail-url-variables

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!