We are using sendmail on linux 8/PHP 4. We are unable to send the mail, however we dont get any error in mail function. In fact we dont know where mail is delivering.
Same application is working properly in Lunix 7/PHP 3.
We are stuck here, please let us know whats wrong we are doing?
We are using following coding:
<?php
$mail_to="ashishkanoongo@rediffmail.com";
$mail_from="ramsharma_indr@rediffmail.com";
$mail_reply_to="ramsharma_indr@rediffmail.com";
$mail_cc="ramsharma_indr@rediffmail.com";
$mail_bcc="ramsharma_indr@hotmail.com";
$mail_headers = "From: $mail_from\r\nReply-to:
$mail_reply_to\r\nCc:$mail_cc\r\nBcc: $mail_bcc";
$mail_subject = "test";
$mail_body = "test";
if(mail($mail_to,$mail_subject,$mail_body,$mail_headers)){
echo "sucess";
}
else
{
echo "error";
}
?>