Personally, I would simplify things and take out the usage of double quotes and slashes, and use embedded single quotes within your echo statement, such as:
echo "<form action='mail.php?send' method='post'>
To: <input type='text' name='to'><br>
etc etc
Not sure if that will solve the problem entirely, but it sure makes life simpler imho.
-Elizabeth