Re: why this mail function code not working ?

From: Date: Fri, 16 May 2003 20:05:22 +0000
Subject: Re: why this mail function code not working ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19969@lists.php.net to get a copy of this message
Hi!, are u behind a router or gateway? because that ip that u are using is commonly used for LAN and intern DHCP's, thats not a www ip, just local, try to look for your correct ip, u can try at least www.whatsmyipaddress.com and verify your current ip and put it in your smtp line =P cya, hope that helps.... Ádrian Labastida "Raheel Hussain" <raheelphp@yahoo.com> wrote in message news:20030516124546.91783.qmail@web21202.mail.yahoo.com... > hi, > i have tried checking my php.ini file properly > tried putting > smtp = localhost > also my computer ip add. > smtp = 192.168.0.32 > > but always get this message > > " Unable to send mail to you. " > > here is the code > > <?php > $recipient = "sabid_az@hotmail.com"; > $subject = "Subject line here"; > $content = "Email text here"; > $headers = "From: website@somewhere.com"; > > if( mail($recipient, $subject, $content, $headers) ) > { > echo("Check your mail."); > } > else{ > echo("Unable to send mail to you."); > } > ?> > > any suggestion tht wht m i forgetting ??? > > regards > > > > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo.

« previous php.windows (#19969) next »