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

<legend id='mGWcT'><style id='mGWcT'><dir id='mGWcT'><q id='mGWcT'></q></dir></style></legend>
    <bdo id='mGWcT'></bdo><ul id='mGWcT'></ul>
    1. <tfoot id='mGWcT'></tfoot>

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

        在 XAMPP for Linux 中使用 mailtodisk/mailoutput

        Use of mailtodisk / mailoutput in XAMPP for Linux(在 XAMPP for Linux 中使用 mailtodisk/mailoutput)

          <tbody id='89zl1'></tbody>

          <legend id='89zl1'><style id='89zl1'><dir id='89zl1'><q id='89zl1'></q></dir></style></legend>
          <tfoot id='89zl1'></tfoot>

          <small id='89zl1'></small><noframes id='89zl1'>

        1. <i id='89zl1'><tr id='89zl1'><dt id='89zl1'><q id='89zl1'><span id='89zl1'><b id='89zl1'><form id='89zl1'><ins id='89zl1'></ins><ul id='89zl1'></ul><sub id='89zl1'></sub></form><legend id='89zl1'></legend><bdo id='89zl1'><pre id='89zl1'><center id='89zl1'></center></pre></bdo></b><th id='89zl1'></th></span></q></dt></tr></i><div id='89zl1'><tfoot id='89zl1'></tfoot><dl id='89zl1'><fieldset id='89zl1'></fieldset></dl></div>
              <bdo id='89zl1'></bdo><ul id='89zl1'></ul>
                • 本文介绍了在 XAMPP for Linux 中使用 mailtodisk/mailoutput的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  与 Windows 不同,我无法在 Linux 中使用mailtodisk"PHP 选项.好像根本不存在.

                  Unlike in Windows, i'm having trouble to use the "mailtodisk" PHP option in Linux. Looks like it doesn't even exist.

                  在php.ini"的邮件部分,没有对它的引用:

                  In "php.ini", in the mail section, there is no reference to it:

                  [mail function]
                  ; For Win32 only.
                  ; http://php.net/smtp
                  SMTP=localhost
                  ; http://php.net/smtp-port
                  smtp_port=25
                  
                  ; For Win32 only.
                  ; http://php.net/sendmail-from
                  ;sendmail_from = me@example.com
                  
                  ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
                  ; http://php.net/sendmail-path
                  ;sendmail_path =
                  
                  ; Force the addition of the specified parameters to be passed as extra parameters
                  ; to the sendmail binary. These parameters will always replace the value of
                  ; the 5th parameter to mail(), even in safe mode.
                  ;mail.force_extra_parameters =
                  
                  ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
                  mail.add_x_header=On
                  
                  ; Log all mail() calls including the full path of the script, line #, to address and headers
                  mail.log ="/opt/lampp/logs/php_mail_log"
                  
                  [SQL]
                  

                  我在本地主机主页中看不到邮件"链接,用于测试默认邮件表单,因为它有很多像这样的崩溃:

                  I can't see the "Mail" link in the localhost homepage, for test the default mail form, because it's with many crashes like this one:

                  注意:未定义变量:/opt/lampp/htdocs/xampp/start.php 第 12 行中的 TEXT

                  Obs:尽管 localhost 主页中出现此错误,但我正在运行项目没有问题.

                  Obs: despite this errors in the localhost homepage, i'm running projects without a problem.

                  实际上,它的菜单中似乎没有邮件"链接(我已经搜索了源代码).

                  In fact, it doesn't seems to have a "Mail" link in the menu (i've searched the source code).

                  我不知道此信息是否有任何帮助,但文件sendmail.php"使用了我系统中不存在的文件:/usr/sbin/sendmail.

                  I don't know if this info helps in any way, but the file "sendmail.php" uses a file that doesn't exist in my system: /usr/sbin/sendmail.

                  XAMPP 的当前版本是:1.8.3,最近更新了.

                  The current version of XAMPP is: 1.8.3, and was recently updated.

                  是否可以在 XAMPP for Linux 中使用mailtodisk"?如果是,我需要在我的情况下做什么?

                  Is it possible to use "mailtodisk" in XAMPP for Linux? If yes, what i need to do in my situation?

                  推荐答案

                  不存在,但这是我的mailtodisk脚本:

                  It doesn't exist, but this is my mailtodisk script:

                  /opt/lampp/mailtodisk/mailtodisk:

                  #!/opt/lampp/bin/php
                  <?php
                  $input = file_get_contents('php://stdin');
                  $filename = '/opt/lampp/mailoutput/mail-' . gmdate('Ymd-Hi-s') . '.txt';
                  $retry = 0;
                  while(is_file($filename))
                  {
                      $filename = '/opt/lampp/mailoutput/mail-' . gmdate('Ymd-Hi-s') . '-' . ++$retry . '.txt';
                  }
                  file_put_contents($filename, $input);
                  

                  您的 XAMPP 安装可能不在文件夹 /opt/lampp 中,如果不在,您需要编辑脚本(尽管它不必存在于 XAMPP 中文件夹).

                  Your XAMPP installation might not be in the folder /opt/lampp, if it isn't, you'll need to edit the script (although it doesn't have to live in the XAMPP folder).

                  确保您的 mailtodisk 脚本可以由任何人运行(chmod 755 mailtodisk),并且您的 mailoutput 文件夹可以被任何人写入(chmod 777 邮件输出).

                  Make sure your mailtodisk script can be run by anybody (chmod 755 mailtodisk), and your mailoutput folder can be written to by anybody (chmod 777 mailoutput).

                  那么你的 php.ini 文件(/opt/lampp/etc/php.ini)应该有:

                  Then your php.ini file (/opt/lampp/etc/php.ini) should have:

                  sendmail_path=/opt/lampp/mailtodisk/mailtodisk
                  

                  每次编辑 php.ini 文件时,都必须重新启动 Apache.

                  Any time you edit the php.ini file, you have to restart Apache.

                  如果您不想发送电子邮件,安装 sendmail 是多余的.

                  Installing sendmail if you don't want to send the emails, is overkill.

                  这篇关于在 XAMPP for Linux 中使用 mailtodisk/mailoutput的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

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

                    <legend id='yDdQ1'><style id='yDdQ1'><dir id='yDdQ1'><q id='yDdQ1'></q></dir></style></legend>

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

                          <bdo id='yDdQ1'></bdo><ul id='yDdQ1'></ul>
                        • <tfoot id='yDdQ1'></tfoot>

                              <tbody id='yDdQ1'></tbody>