I'm attempting to set up test email from my development machine. I have code that uses the mail function and works elsewhere. I don't want to use my ISP's SMTP provider unless I have to.
I'm getting this error:
I have the following settings in php.ini (it's the only php.ini I have on my machine, so I assume it's the one being used when PHP is loaded):
And I have gone into IIS7's manager and set up the following in the "SMTP Email" area:
1. Use localhost
2. Port 25
3. Authentication settings (tried both "not required" and "windows"
I don't understand why this doesn't work. Can someone enlighten me?
TIA,
Bob
I'm getting this error:
Code:
PHP Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25 (etc etc)
I have the following settings in php.ini (it's the only php.ini I have on my machine, so I assume it's the one being used when PHP is loaded):
Code:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
And I have gone into IIS7's manager and set up the following in the "SMTP Email" area:
1. Use localhost
2. Port 25
3. Authentication settings (tried both "not required" and "windows"
I don't understand why this doesn't work. Can someone enlighten me?
TIA,
Bob