--- In [email protected], "Greg" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "pratimadongare" > <pratimadongare@> wrote: > > > > For the following code : > > if (mail($to, $from,$subject, $body,"From:$from/r/nReply-to:$from")) > > { > > echo("<p>Message successfully sent!</p>"); > > } else { > > echo("<p>Message delivery failed...</p>"); > > } > > > > I get error as > > PHP 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:\Inetpub\wwwroot\sakec\acceptrequest1.php on line 47 > > > > Inspite of the fact that i have set the smtp port settings to "25" > > I hv also removed ';' from "mail.force_extra_parameters =" > > Is this error due to wrong setting in php.ini or due to some error in > > my PC > > > > Neither. It's due to a programming error: You've got /r/n when it > ought to be \r\n !!! >
Hello This is seenu, You must configure SMTP , after that this kind of problem not come i think.
