Okay, I have been searching all morning, and have found nothing on how to solve this, I hope I am to be posting this thread under IIS vs. PHP forum. Sorry if its in the wrong spot.
So here is my SMTP section of my php.ini
-------------------------------------------------------------------------
[mail function]
; For Win32 only.
SMTP = mail.website.com
smtp_port = 25
; For Win32 only.
sendmail_from = name@website.com
-----------------------------------------------------------------------
When I try and submit my form, which I know works, I get this error on my page:
[PHP]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:\Websites\TRR DNN\sendmail.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at C:\Websites\TRR DNN\sendmail.php:95) in C:\Websites\TRR DNN\sendmail.php on line 96[/PHP]
What I dont understand is why it is saying there is any error at "localhost" when it should be looking for mail.website.com
I have ensured the php.ini file is saved, I have bounced IIS (6, on Windows Server 2003) by the way. Rebooted and everything.
The email server is NOT on this machine, and I CAN to a:
telnet website.com 25
from this machine.
I am juuust out of ideas. Any PHP, mail, IIS peeps that can help me out there that would be GREAT!