Gmail的网址变量 [英] gmail url variables

查看:122
本文介绍了Gmail的网址变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了我的 mailto 链接,以便他们打开Gmail。

  //你可以编写一个像这样的url来推送到Gmail 
https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=user @ example.com

我知道还有其他几个变量:

 & su = //电子邮件主题
& body = //正文文本
& disablechatbrowsercheck = 1 //非常自我解释

事情是我找不到任何可能的列表。



有没有人编写过这样的东西,或者找到了这样一个列表。




编辑:现在您可以使用传统的mailto链接来传递主题和身体参数:

 < a href = mailto:a@example.net?subject = Your Subject& body = Your Message>通过电子邮件发送< / a> 


解决方案

mailto链接将会打开你已经安装的默认邮件客户端
i认为安装了gmail notifier就足够了
,对没有Gmail的用户会更好。


请参阅将Gmail设置为默认邮件应用程序让mailto:链接在gmail中打开

如果没有,我从 here


https://mail.google.com/mail?view=cm&tf=0 + to
(emailTo?(& to =+ emailTo):)+

(emailCC?(& cc =+ emailCC): )+

(emailSubject ? (& su =+ emailSubject):)+
(emailBody?(& body =+ emailBody):);
<
可能的参数

这里

G-Mailto



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>

解决方案

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

这篇关于Gmail的网址变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆