You need to add newlines to your array like:
$headers = array('Content-Type: text/html; charset=UTF-8\r\n', "From: $name <$email>\r\n");
You need to add newlines to your array like:
$headers = array('Content-Type: text/html; charset=UTF-8\r\n', "From: $name <$email>\r\n");