Hi.
I do not want to send this as an attachment... let me make sure I am clear before I get started. 🙂
I have a file in a directory. It is an .html file and is an entire page with some text on it. I want to be able to do the following with php code....
Read the contents of the page and (possibly) make it a variable such as "$html_code".
Insert the info contained in the variable "$html_code" into a mail command...
ex.
mail("someone@somewhere.com","Subject","Here is your code....\n $html_code\n","From: bob@bobssite.com");
I suppose the most important thing I am seeking to do is to get the html code from the file and somehow put that code into a php variable so I can work with it.
Is there an easy way to do this?
Thanks for any help you can provide. I had no luck doing keyword searches for this issue.