Page 1 of 1

mail() :Failed 2 connect 2 mailserver at "localhost" port 25

Posted: Sat Oct 10, 2009 3:40 am
by nehrav
Hi frndz,
I am using wamp and I am trying to send mail from my local machine
Code is running but i get this error on script execution:-

Warning: mail() [function.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:\wamp\www\test\mail.php on line 20

I have a lighter idea that its because of smtp settings in .ini file....
but not sure what to edit and where to edit.... :crazy:

Plz suggest me some solution or way to send mail from local machine.

Re: mail() :Failed 2 connect 2 mailserver at "localhost" port 25

Posted: Mon Oct 12, 2009 7:29 am
by pbs
You need to install mail server to send mails from local machine. You can install IIS and configure it for php to send mail.

Re: mail() :Failed 2 connect 2 mailserver at "localhost" port 25

Posted: Mon Oct 12, 2009 8:28 am
by nehrav
pbs wrote:You need to install mail server to send mails from local machine. You can install IIS and configure it for php to send mail.
I download pegasus 4.51 from net after googling about the same problem.
But haven't done any R & D yet??

can that pegasus work?? :?: