<small id='5mVEp'></small><noframes id='5mVEp'>

    1. <legend id='5mVEp'><style id='5mVEp'><dir id='5mVEp'><q id='5mVEp'></q></dir></style></legend>
      <i id='5mVEp'><tr id='5mVEp'><dt id='5mVEp'><q id='5mVEp'><span id='5mVEp'><b id='5mVEp'><form id='5mVEp'><ins id='5mVEp'></ins><ul id='5mVEp'></ul><sub id='5mVEp'></sub></form><legend id='5mVEp'></legend><bdo id='5mVEp'><pre id='5mVEp'><center id='5mVEp'></center></pre></bdo></b><th id='5mVEp'></th></span></q></dt></tr></i><div id='5mVEp'><tfoot id='5mVEp'></tfoot><dl id='5mVEp'><fieldset id='5mVEp'></fieldset></dl></div>
        • <bdo id='5mVEp'></bdo><ul id='5mVEp'></ul>
        <tfoot id='5mVEp'></tfoot>
      1. XAMPP 邮件不适用于 PHP mail() 函数

        时间:2024-04-12

          <bdo id='G5E1s'></bdo><ul id='G5E1s'></ul>
            <legend id='G5E1s'><style id='G5E1s'><dir id='G5E1s'><q id='G5E1s'></q></dir></style></legend>
          • <i id='G5E1s'><tr id='G5E1s'><dt id='G5E1s'><q id='G5E1s'><span id='G5E1s'><b id='G5E1s'><form id='G5E1s'><ins id='G5E1s'></ins><ul id='G5E1s'></ul><sub id='G5E1s'></sub></form><legend id='G5E1s'></legend><bdo id='G5E1s'><pre id='G5E1s'><center id='G5E1s'></center></pre></bdo></b><th id='G5E1s'></th></span></q></dt></tr></i><div id='G5E1s'><tfoot id='G5E1s'></tfoot><dl id='G5E1s'><fieldset id='G5E1s'></fieldset></dl></div>

            <small id='G5E1s'></small><noframes id='G5E1s'>

                <tbody id='G5E1s'></tbody>
              • <tfoot id='G5E1s'></tfoot>
                1. 本文介绍了XAMPP 邮件不适用于 PHP mail() 函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我刚刚安装了 XAMPP,Apache 正在运行,MySQL 和 Mercury 也在运行.

                  I just installed XAMPP, Apache is running, so is MySQL and Mercury.

                  在 Dreamweaver 中,我使用 mail($to,$subject,$msg,'From:'.$email); 函数创建了一个 php 文件,但是当我从 localhost 运行文件时显示错误.玩过xampp控制面板,打开和关闭水银后,它没有显示任何错误,也没有发送电子邮件......有什么想法吗?

                  In Dreamweaver I created a php file with a mail($to,$subject,$msg,'From:'.$email); function, but when I ran the file from localhost it showed an error. After playing around with xampp control panel, turning mercury on and off, it's not showing any errors, yet is not send the email either... any ideas?

                  cp 上的 'admin' 按钮对于水星没有任何作用.

                  the 'admin' button on the cp for mercury does nothing.

                  谢谢!回复

                  推荐答案

                  你必须 配置与 xampp 捆绑的水星服务器 以实际传递/中继邮件.

                  You would have to configure the mercury server bundled with xampp to actually deliver/relay the mails.

                  但我建议你使用 SwiftMailer 之类的东西,而不是 php 的 mail() 函数.

                  But I suggest you use something like SwiftMailer instead of php's mail() function.

                  还有第三个选项.php/win32 内置的 mini-smtp-client 不能做认证.因此你不能简单地把 SMTP=mail.gmail.com;smtp_port=25 在您的 php.ini 中.但是您可以设置 sendmail_path 并指向可以中继的应用程序向另一个 smtp 服务器发送消息(包括身份验证),例如假发送邮件.
                  (但我还是建议使用 swiftmailer)

                  edit: there is a third option. The mini-smtp-client built into php/win32 can't do authentication. Therefore you can't simply put SMTP=mail.gmail.com; smtp_port=25 in your php.ini. But you can set sendmail_path and point to an application that can relay the message to another smtp server (including authentication), e.g. fake sendmail.
                  (But I still suggest swiftmailer)

                  这篇关于XAMPP 邮件不适用于 PHP mail() 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:无法加载动态库 'C:xamppphpextphp_oci8.dll' - %1 不是有效的 Win32 下一篇:Windows、XAMPP、PHP 7 和 opcache

                  相关文章

                  <small id='rTfCl'></small><noframes id='rTfCl'>

                  <tfoot id='rTfCl'></tfoot>
                  <i id='rTfCl'><tr id='rTfCl'><dt id='rTfCl'><q id='rTfCl'><span id='rTfCl'><b id='rTfCl'><form id='rTfCl'><ins id='rTfCl'></ins><ul id='rTfCl'></ul><sub id='rTfCl'></sub></form><legend id='rTfCl'></legend><bdo id='rTfCl'><pre id='rTfCl'><center id='rTfCl'></center></pre></bdo></b><th id='rTfCl'></th></span></q></dt></tr></i><div id='rTfCl'><tfoot id='rTfCl'></tfoot><dl id='rTfCl'><fieldset id='rTfCl'></fieldset></dl></div>
                    <bdo id='rTfCl'></bdo><ul id='rTfCl'></ul>
                2. <legend id='rTfCl'><style id='rTfCl'><dir id='rTfCl'><q id='rTfCl'></q></dir></style></legend>