如何使用PHP从本地wamp服务器发送电子邮件? [英] How to send email from local wamp server using PHP?
问题描述
我需要从本地主机发送电子邮件。
I need to send email messages from my localhost.
我正在使用wamp服务器,我的网站被加载到我自己的服务器上,请您建议如何发送电子邮件使用我的localhost和PHP?
I am using wamp server and my site is loaded on my own server, please could you suggest how to send emails using my localhost and PHP?
推荐答案
mail()函数默认情况下通常不工作,如WAMP。您将需要将SMTP服务器的详细信息添加到php.ini文件。
The mail() function usually doesn't work by default for things like WAMP. You will need to add details of your SMTP server to the php.ini file.
这是一个很好的教程: http://roshanbh.com.np/2007/12/sending -e-mail-from-localhost-in-php-in-windows-environment.html
Here is a nice tutorial: http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html
这篇关于如何使用PHP从本地wamp服务器发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!