On Sat, 2009-05-30 at 15:01 +0530, Sumit Sharma wrote: > I have already un-commented the smtp settings as > > SMTP = localhost > smtp_port = 25 > > do I need to change any other settings. > > Sumit > > > > On Sat, May 30, 2009 at 3:06 PM, Ashley Sheridan > <ash@xxxxxxxxxxxxxxxxxxxx> wrote: > On Sat, 2009-05-30 at 14:41 +0530, Sumit Sharma wrote: > > Hi, > > > > I am new to php and not able to send mail from localhost. > when trying to do > > so getting following response: > > > > > > > *Warning*: mail() [function.mail > <http://localhost/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\abc1.php* on > > line *9 > > > > *Please Help, > > > > Thanks, > > Sumit > > > You need to edit your smtp settings in the php.ini file to > point to the > mail server you are using. I believe on a Windows php.ini > these are > commented out by default (at least they always have been for > me) > > > Ash > www.ashleysheridan.co.uk > > Have you restarted the server? Also, I'm not sure, but does Windows come with an SMTP server by default? It might be something only available to Windows Server versions, and would need setting up. 'Course, I'm not too sure on Windows servers, I tend to work more with a LAMP stack than WAMP. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php