why this mail function code not working ?

From: Date: Fri, 16 May 2003 12:45:46 +0000
Subject: why this mail function code not working ?
Groups: php.windows 
Request: Send a blank email to php-windows+get-19963@lists.php.net to get a copy of this message
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 (#19963) next »