[英]Can't get “Test Mail Server Tool” working on Windows 8.1
I'm trying to test the php mail() function on localhost so I installed Test Mail Server Tool but I can't get it to work. 我试图在localhost上测试php mail()函数,所以我安装了测试邮件服务器工具,但无法正常工作。
I installed it, ran it, didn't change any settings. 我安装了它,运行了它,没有更改任何设置。 I then opened a php file in chrome that only contained the mail function, but no file was created in the "Mail Sent To Local Server" directory.
然后,我在chrome中打开了一个仅包含邮件功能的php文件,但未在“发送到本地服务器的邮件”目录中创建任何文件。
Any ideas how I can get this to work? 有什么想法可以使它起作用吗?
PHP: PHP:
<? mail("foo@bar.com", "mail function test", "testtesttesttesttest"); ?>
Try to edit these two lines in php.ini 尝试在php.ini中编辑这两行
SMTP = 127.0.0.1
smtp_port = 25
And restart Apache 并重启Apache
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.