Re: Sending mail from localhost

From: Date: Sat, 30 May 2009 09:36:11 +0000
Subject: Re: Sending mail from localhost
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293378@lists.php.net to get a copy of this message
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

« previous php.general (#293378) next »