I am trying to set up the PHP mail function. I already set two things in my php.ini file.
[mail function]
; For Win32 only.
SMTP = smtp-server.nc.rr.com
; For Win32 only.
sendmail_from = me@nc.rr.com
Next I wrote a little test mail.php:
mail("me@nc.rr.com", "SubjectTest", "MessageTest");
But when I test it I get:
Warning: Failed to Connect in c:...\mail.php on line 2
I am running an Apache server off of Win XP Home. My other PHP pages work so I know the PHP works. My server works. And my SMTP is from my outlook account info so I know it works. I tested the SMTP with another SMTP Server program to see if RoadRunner was blocking port 25 and it worked so I guess they are not.
Please help!!!!
All I want is to have my web server email a user his/her password automatically if they have forgotten it. So I will never be receiving email just sending. If there is another "BETTER" way let me know.
Did I miss a setting or something?
Did I configure everything that needs to be done for PHP mail() to work?
Thanks for any help!