可以';t得到“;测试邮件服务器工具”;在Windows 8.1上工作


Can't get "Test Mail Server Tool" working on Windows 8.1

我正试图在localhost上测试php-mail()函数,所以我安装了测试邮件服务器工具,但无法使其工作。

我安装了它,运行了它,没有更改任何设置。然后,我在chrome中打开了一个php文件,该文件只包含mail函数,但在"mail Sent To Local Server"目录中没有创建任何文件。

你知道我该怎么做吗?

PHP:

<? mail("foo@bar.com", "mail function test", "testtesttesttesttest"); ?>

尝试在php.ini 中编辑这两行

SMTP = 127.0.0.1
smtp_port = 25

并重新启动Apache