【发布时间】:2013-10-23 22:49:40
【问题描述】:
与 Windows 不同,我无法在 Linux 中使用“mailtodisk”PHP 选项。好像根本不存在。
在“php.ini”的邮件部分,没有对它的引用:
[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]
我在本地主机主页中看不到“邮件”链接,用于测试默认邮件表单,因为它有很多像这样的崩溃:
Notice: Undefined variable: TEXT in /opt/lampp/htdocs/xampp/start.php on line 12
Obs:尽管 localhost 主页中出现此错误,但我正在运行项目没有问题。
实际上,它的菜单中似乎没有“邮件”链接(我已经搜索了源代码)。
我不知道此信息是否有任何帮助,但文件“sendmail.php”使用了我系统中不存在的文件:/usr/sbin/sendmail。
XAMPP 的当前版本是:1.8.3,最近更新了。
是否可以在 XAMPP for Linux 中使用“mailtodisk”?如果是,我需要在我的情况下做什么?
【问题讨论】:
-
我会说linux带来了将邮件传递到本地硬盘驱动器所需的所有工具,但这需要知道如何配置邮件服务器。除非“mailtodisk”也作为 linux 的可执行文件提供,否则此功能似乎仅适用于 Windows。 XAMPP 的人应该知道更多 - 你有没有在那里寻求支持?