I am trying to send mail from Linux Redhat server through PHP. It is 
not  giving me any error but I am not getting any mail too.

  Following is the code

  ------------------------------------

  <?
  $mailBody = "This is one line \ n This is a second line \n\n this is 
a  third line";
   $boolMail = mail ("[EMAIL PROTECTED]", "Test mail subj from local linux 
server - PHP", $mailBody);
  print ("Email has been send ");
  ?>

  ---------------------------------

  Even I checked the email files at /var/spool/mqueue - There are 2 
files,  one with message and one with lots of other info. But then why I am 
not  getting the emails ? Why they are remaining in the queue ? Is there 
any  setting required somewhere ?

I tried to give direct sendmail command from root.

root#  sendmail [EMAIL PROTECTED]

this is a body

^C

(I hope last ^C is the right command to stop the editor). But in this case 
I even did not get anything in queue.

Please help I am stuck.

Thanks in advance
Manisha


  



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to