Page 1 of 1

error in sending mail

Posted: Sat Sep 10, 2005 5:54 am
by amlan_08
I am using a mail class to send mails. Bur it shows the following error:

Warning: 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:\inetpub\wwwroot\AMC\mail\mail.class.php on line 60.

How to overcome this error?

Re: error in sending mail

Posted: Sat Sep 10, 2005 6:48 am
by Fractal
amlan_08 wrote:I am using a mail class to send mails. Bur it shows the following error:

Warning: 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:\inetpub\wwwroot\AMC\mail\mail.class.php on line 60.

How to overcome this error?
Open port 25.