Just use this line instead when setting your $header:
$header = \"From: $email\\r\\nReply-To: $email\\r\\nContent-Type: text/html\\r\\n\";