Failed to connect to mailserver at "localhost" por

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
renshin_recca
Forum Newbie
Posts: 1
Joined: Fri Jun 16, 2006 2:05 am

Failed to connect to mailserver at "localhost" por

Post 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,
Post Reply