Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
604 views
in Technique[技术] by (71.8m points)

email - How can I configure the mail function of PHP on Windows Vista?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...