mail() error This server does not accept an empty envelope

How to I fix this for this error I am using the basic Mail function. Here is a rough copy it of. How do I fix this problem I am using wamp, and suppose to have a mail server getting this though I get this so I guess I am logged in

$to = "[email protected]";

$from = "[email protected]";

$subject = “Registration”;

// Begin HTML Email Message
$message = “Hi whoever,”;

//end of message

$headers = “From: $from\r\n”;
$headers .= “Content-type: text\r\n”;

mail($to, $subject, $message, $headers);

exit();

Sponsor our Newsletter | Privacy Policy | Terms of Service