Try setting everything into distinct variables before using the mail command.
$to = "info@mydomain.com";
$subject = "Email Subject Here";
$message = "Your message body here";
$headers = "From: $email\r\n";
mail($to, $subject, $message, $headers);
covered in the manual