I am selecting info from a database, making a string that makes an HTML page with the variables from the database included. Works fine, but I want to send that html source (which I have made $message) in an email. I cannot get it to send though. When I run the page it shows $message just like I want it, and if I change the message and don't include $message in the email, it will send an email. Any help would be greatly appreciated.

Edit: When I make the $message variable with $message = q( all the data) instead of 'qq', it will send the script fine, without the content of the variables, of course.