使用 php 和 html 打开 Outlook 新邮件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8503699/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 04:52:45  来源:igfitidea点击:

Open a outlook new mail using php and html

phphtmldrupaloutlook

提问by bharathi

I am creating a html page and I have a button in my html page. Once the button is clicked the outlook has to be opened with the "To" and the "Subject" information as shown in the figure.

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

enter image description here

在此处输入图片说明

Can any help me how to open the outlook with php.Thanks in advance.

任何人都可以帮助我如何使用 php.Thanks 打开前景。

回答by David Laberge

here the link to use:

这里的链接使用:

<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.

来源在这里

回答by Maheep

Use mailto hyperlink to open mail application on client machine

使用 mailto 超链接打开客户端机器上的邮件应用程序

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

You can also add ccand bccusing querystring paramters as we have done for body.

您还可以使用查询字符串参数添加ccbcc ,就像我们对body所做的那样。

This will open default mail application configured on client machine; It may open different application accordingly.

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

回答by hungneox

I think you should use a tag like following

我认为你应该使用如下标签

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

But open Outlook, Thunderbird or other client is user's default setting.

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