error in sending mail

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
amlan_08
Forum Newbie
Posts: 11
Joined: Sun May 22, 2005 1:24 am

error in sending mail

Post 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?
User avatar
Fractal
Forum Commoner
Posts: 54
Joined: Tue Aug 16, 2005 1:28 pm

Re: error in sending mail

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