【问题标题】:Open a outlook new mail using php and html使用 php 和 html 打开 Outlook 新邮件
【发布时间】:2011-12-14 11:24:53
【问题描述】:

我正在创建一个 html 页面,并且我的 html 页面中有一个按钮。单击按钮后,必须使用“To”和“Subject”信息打开前景,如图所示。

谁能帮助我如何用php打开outlook。在此先感谢。

【问题讨论】:

  • 如果客户的 PC 上没有 Outlook,你会怎么做? HTML 命令是<mailto ....>

标签: php html drupal outlook


【解决方案1】:

这里是使用的链接:

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

Source is here.

【讨论】:

  • 如何使用按钮执行此操作。单击按钮时应打开 Outlook。很抱歉提出简单的疑问
  • 如果你使用 jQuery,只需在 $(document).ready() 函数中添加 $('a').button()
【解决方案2】:

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

<a href="mailto:toid@example.com?Subject=subject here&Body=bodytext">
    Link display text
</a>

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

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

【讨论】:

    【解决方案3】:

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

    <a href="mailto:your_mail@example.com">your_email</a> 
    

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

    【讨论】:

    • 嗨@noctilux 这个代码对我有用,我已经添加了这个代码,以便我当前的outlook页面打开。如果万一电脑里没有outlook会打开什么,请告诉我,谢谢。
    猜你喜欢
    • 2023-01-16
    • 2013-10-08
    • 2016-11-14
    • 2013-12-28
    • 2013-03-10
    • 1970-01-01
    • 2011-11-18
    • 1970-01-01
    • 2011-05-31
    相关资源
    最近更新 更多