Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure Win 2000 w/PHP

Status
Not open for further replies.

lothadio

Programmer
Apr 5, 2001
27
SI
What do I need to do to configure my Win 2000 server so I can use the MAIL() function in PHP?

I get a server error, I am sure that I do not have dns and all that configured inside of PHP somewhere

Thanks
 
You need to be able to access an SMTP server. I don't think Win2K comes with one out of the box (just IIS which has FTP/HTTP serving capability).

Your ISP should have an SMTP server you can at least experiment with.


===========================================
Small footprint P2P web server for Windows,
File-sharing, PHP, wireless apps & more
===========================================
 
Win2k Pro doesnt come out of the box with SMTP, win2k server and above comes out with SMTP in IIS, but you can point your php script to a mail server on a different machine...

You will have to set it up in the php.ini file in the winnt directory

Dramoth
 
Dramoth hit is with telling you to edit the php.ini file.

You will have to find the lines that look like this:

[tt]
[mail function]
SMTP = mail.cnunited.com ;for win32 only
sendmail_from = krs-one@cnunited.com ;for win32 only
[/tt]

And change them accordingly so that they match your smtp service.

Thanks,

-Vic
vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top