AW: [PHP-WIN] Re: why this mail function code not working ?

From: Date: Sat, 17 May 2003 14:56:35 +0000
Subject: AW: [PHP-WIN] Re: why this mail function code not working ?
Groups: php.windows 
Request: Send a blank email to php-windows+get-19980@lists.php.net to get a copy of this message
Hi Ádrian, what's wrong with a lan ip as the _inside_ address of the smtp server ? It sounds perfectly acceptable to me to have a routing smtp server at the border of an intranet ... In fact that's the way it is over here. Regards, -- Sven > -----Ursprüngliche Nachricht----- > Von: Adrian Labastida [SMTP:labastida@host-depot.com] > Gesendet am: Freitag, 16. Mai 2003 22:05 > An: php-windows@lists.php.net > Betreff: [PHP-WIN] Re: why this mail function code not working ? > > 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. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#19980) next »