mail is not working . I am using apache on linux Fedora8 and am on a local host plz tell me why it doesnt work should i make any configurations and how do i /usr/sbib/sendmail
Code below works without errors <?php $Name = "Da Duder"; //senders name $email = "email@adress.com"; //senders e-mail adress $recipient = "PersonWhoGetsIt@emailadress.com"; //recipient $mail_body = "The text for the mail..."; //mail body $subject = "Subject for reviever"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields mail($recipient, $subject, $mail_body, $header); //mail command :) ?> PHP:
Maybe your host has disabled it or their IP is in spam blacklist. Try sending to an email with no spam filtering.