【问题标题】:Why my php page is not sending mail [closed]为什么我的php页面没有发送邮件[关闭]
【发布时间】:2015-01-14 02:38:27
【问题描述】:

当我重新加载页面时,会显示一个链接发送邮件,但是当我点击此链接时,它没有重定向发送邮件,我的代码有什么问题?

<?php
echo '<a href="//mailto:me@example.com?Subject=We are going to ibiza" target="_top">Emil now</a>';
?>

请帮忙,谢谢!

【问题讨论】:

  • 删除链接中的//

标签: php html email


【解决方案1】:

您在 ma​​ilto 之前添加 // 这是您编码的主要问题!>我已经改进了下面的代码,希望对您有所帮助!

<?php
echo '<a href="mailto:me@example.com?Subject=We+are+going+to+ ibiza" target="_top">Emil now</a>';
?>

【讨论】:

    【解决方案2】:

    看看这里: http://de.selfhtml.org/html/verweise/email.htm

    我认为您只需要删除链接中的两个 //

    【讨论】:

      【解决方案3】:

      去掉“mailto”前的两个斜线

      <?php
      echo '<a href="mailto:me@example.com?Subject=We are going to ibiza" target="_top">Emil now</a>';
      ?>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-09-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-03-15
        • 1970-01-01
        • 1970-01-01
        • 2011-09-22
        相关资源
        最近更新 更多