For some reason the iis smtp server and php are not communicating properly. I have verified that the smtp is working by telneting to it and doing the mail commands and I'm able to receive an email. In addition, I followed this link http://support.microsoft.com/?id=297700 and was able to receive an email. But whenever I try to send email from PHP nothing happens. What makes this even crazier is there are no smtp logs being written. The log files should be located at c:\windows\system32\logfiles\smtpsvc1 but the smtpsvc1 folder does not exist and there are no email messages in the drop, pickup, queue, or badmail folders under mailroot.
由于某种原因,iis smtp服务器和PHP无法正常通信。我已经验证smtp正在通过telneting到它并执行邮件命令,我能够收到一封电子邮件。此外,我按照此链接http://support.microsoft.com/?id=297700,并能够收到一封电子邮件。但每当我尝试从PHP发送电子邮件时,都没有任何反应。是什么让这更加疯狂的是没有写入smtp日志。日志文件应位于c:\ windows \ system32 \ logfiles \ smtpsvc1,但smtpsvc1文件夹不存在,并且mailroot下的drop,pickup,queue或badmail文件夹中没有电子邮件。
I'm not really sure why no logs exist for this. I gave the Network Service user permission to that logfiles folder but to no avail. So I guess the gist of my question is how can I make PHP and iis smtp send email.
我不确定为什么没有这个日志。我向网络服务用户授予了该日志文件夹的权限,但无济于事。所以我想我的问题的主旨是如何让PHP和iis smtp发送电子邮件。
I have the smtp configured to send email to a remote MailEnable server not exchange. Any ideas?
我将smtp配置为将电子邮件发送到远程MailEnable服务器而不是交换。有任何想法吗?
2 个解决方案
#1
Not really a direct answer, but you know that by default SMTP logging is not on and you need to enable it via IIS manager. So, you won't get any logs until you do so. You will be able to tell if logging is enabled, as SMTP startup/initialization will generate log entries, regardless to any other activities. If your log file is blank, SMTP is not running.
这不是一个直接的答案,但您知道默认情况下SMTP登录未启用,您需要通过IIS管理器启用它。所以,在你这样做之前,你不会得到任何日志。您将能够判断是否启用了日志记录,因为SMTP启动/初始化将生成日志条目,而不管其他任何活动。如果您的日志文件为空,则SMTP未运行。
#2
That test only applies to 2000, at least that what the papers says. You should try here
该测试仅适用于2000年,至少是论文所说的。你应该试试这里
#1
Not really a direct answer, but you know that by default SMTP logging is not on and you need to enable it via IIS manager. So, you won't get any logs until you do so. You will be able to tell if logging is enabled, as SMTP startup/initialization will generate log entries, regardless to any other activities. If your log file is blank, SMTP is not running.
这不是一个直接的答案,但您知道默认情况下SMTP登录未启用,您需要通过IIS管理器启用它。所以,在你这样做之前,你不会得到任何日志。您将能够判断是否启用了日志记录,因为SMTP启动/初始化将生成日志条目,而不管其他任何活动。如果您的日志文件为空,则SMTP未运行。
#2
That test only applies to 2000, at least that what the papers says. You should try here
该测试仅适用于2000年,至少是论文所说的。你应该试试这里