如何在Windows Vista上配置PHP的邮件功能? [英] How can I configure the mail function of PHP on Windows Vista?

查看:136
本文介绍了如何在Windows Vista上配置PHP的邮件功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在自己的网站上工作。



我计划有一个邮件功能向想要加入我的网站的用户发送通知。 >

问题是PHP的邮件功能对我来说不起作用。



有谁可以帮我吗? p>

解决方案

如果您在Windows平台上,可以尝试:


Windows的假发邮件


我假设你没有运行自己的邮件服务器,不想安装一个。您所要做的就是通过使用PHP发送电子邮件或通过(中继)您的ISP邮件服务器,以测试您自己的脚本或测试第三方脚本。



假的Sendmail到位,我们需要编辑php.ini文件,所以PHP的邮件功能可以使用它:


打开文件php.ini位置在文件夹C中:\php搜索此部分[邮件功能](从612开始)




  sendmail_path =/usr/local/sendmail/sendmail.exe -t

更多信息转到:
http://wiki.uniformserver.com/index.php/ Install_Fake_Sendmail_for_Windows


I am working on my own website.

I am planning to have a mail function to send notification to the users who want to join my website.

The problem is the mail function of PHP does not work for me.

Can anyone help me with this?

解决方案

if you are on a windows platform, you could try:

fake sendmail for windows

I am assuming you are not running your own mail server and do not wish to install one. All you want to do is send emails to or via (relay) your ISP mail server using PHP, either to test your own scripts or to test third party ones.

With Fake Sendmail in place we need to edit the php.ini file so PHP’s mail function can use it:

Open the file php.ini located in folder C:\php search for this section [mail function] (starts around line 612)

sendmail_path = "/usr/local/sendmail/sendmail.exe -t"

for more info go to: http://wiki.uniformserver.com/index.php/Installing_Fake_Sendmail_for_Windows

这篇关于如何在Windows Vista上配置PHP的邮件功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆