- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All Topicsi have installed apache in windows 2003 server to make it supprt php, i have upload my website there & i can explorer its but when i use mail fourm its give me this error msg
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\AppServ\www\slave.php on line 229
i have search in websites to resolve this problem they refer to me to make edit of php.ini file .. i have apply the steps but still get same problems so plz help me with this problem coz really its make me crazy lol
thx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ccomleyPosted on 2009-04-07 at 09:23:40ID: 24089015
Windows 2003 Server does NOT run an SMTP mail server by default.
Which edition is it/ Windows Server 2003 Web Edition has a built ni "mini" SMTP server that can be enabled, just for mail transport (i.e. it doesn't support local users, but it can be used to relay mail to the 'net from apps on the server, or nearby.
Windows Server 2003 Standard Edition doesn't have this, you will need to install something to give it at least basic SMTP and, so far as I know, the only way to do this with Microsoft s/w is to load Exchange Server on to it.
ALTERNATIVLY
if you can't add SMTP support to the Windows server, you will need to identify another server to which you can send outbound email, then in your PHP code, instead of "localhost", make the mail script connect to <chosen server> either by name or by IP address. THAT server must be running an SMTP service on port 25... if you don't have one your ISP does.
(BTW, this is an SMTP question NOT a Pegasus or POP3 question.)