2011-12-14 87 views
5

我正在创建一个html页面,并且在我的html页面中有一个按钮。点击该按钮后,必须用“”和“主题”信息打开Outlook,如图所示。使用php和html打开Outlook新邮件

enter image description here

任何能帮助我如何提前打开与php.Thanks前景。

+3

如果客户在他的PC上没有展望,你会怎么做? HTML commande是'` – 2011-12-14 11:27:26

回答

17

这里的链接使用:

<a href="mailto:[email protected]?subject=Feedback for webdevelopersnotes.com&body=The Tips and Tricks section is great">Send me an email</a> 

Source is here

+0

+1为非常好的来源链接。 – Maheep 2011-12-14 11:31:27

6

使用的mailto超链接,客户端机器

<a href="mailto:[email protected]?Subject=subject here&Body=bodytext"> 
    Link display text 
</a> 

上打开邮件应用程序也可以使用查询字符串paramters添加CCBCC,因为我们已经做了

这将打开在客户机上配置的默认邮件应用程序;它可能会相应地打开不同的应用

1

我认为你应该使用一个标签像下面

<a href="mailto:[email protected]">your_email</a> 

但打开Outlook,Thunderbird或其他客户端是用户的默认设置。

+0

嗨@noctilux这段代码正在为我工​​作,我已经添加了这段代码,以便我当前的Outlook页面打开。如果在电脑没有展望的情况下会打开什么,请告诉我,谢谢。 – Kogile 2015-11-02 09:59:29

相关问题