Page 1 of 1

Failed to connect to mailserver at "localhost" por

Posted: Fri Jun 16, 2006 2:11 am
by renshin_recca
Hi guys,

I'm newbie to PHP. i tried to create a simple mail form. however,it gave me some error saying that

Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini bla bla.

I checked my php.ini and it looked fine.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from =

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

Btw,I'm using IIS and have my SMTP virtual server installed on XP. Can anyone help me? I grant permissions to relay through the SMTP server.

Thx,