I set it up using your <<<EOF recomendation and changed all of my variables that I was trying to call from the database to the
<bgsound src="$row[audiosound]" loop="0"> format.
When I ran the file it sent the email fine but every instance of the $row[dbfilename] disappeared and the email arrived like the following...
<bgsound src="" loop="0">
It didn't replace the "$row[audiosound]" with the file name, the $row[audiosound] part just disappeared.
What have I done wrong?
I know that the database is being accessed because the fields outside of the $message = <<<EOF EOF; are being filled with db information.
Thanks for trying to help me.
PROBLEM SOLVED====================
Between Stan who spent a LOT of time helping and Weedpacket who added a key piece of the puzzle I got it to work.
Stan had named the search database results as $email_row[filename] and then changed in the body to $row[filename]. I changed all of the fields to $email_row[filenames] and it works perfectly.
THANKS A MILLION TO YOU BOTH FOR HELPING ME OUT! I REALLY APPRECIATE IT.
Maybe in a hundred years of learning I'll be capable of helping you out.
Ray