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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php