Takster said:your host has probably disabled it.
solution: Get a better host.
Takster said:your host has probably disabled it.
solution: Get a better host.
Takster said:That's true of course... better he just sends one email to himself first, if that fails time to contact the tech dudes for your hosting. Mail functions are usually disabled on cheap shit or freebie hosting so if you're on that... you're prolly gonna be SOL.
<?
// ---------------- SEND MAIL FORM ----------------
// send e-mail to ...
$to="[email protected]";
// Your subject
$subject="Test";
// From
$header="from: your name <[email protected]>";
// Your message
$message="Hello \r\n";
$message.="This is test\r\n";
$message.="Test again ";
// send email
$sentmail = mail($to,$subject,$message,$header);
// if your email succesfully sent
if($sentmail){
echo "Email Has Been Sent .";
}
else {
echo "Cannot Send Email ";
}
?>