barkster Posted August 30, 2006 Share Posted August 30, 2006 I'm trying to send out a bulk email and I have a page designed that I want to use as the body of the html. How do I set my body variable to the code of the page. I tried $body = include('page.php') but all that did was display my page. This has to be very simple. Thanks Link to comment https://forums.phpfreaks.com/topic/19185-page-code-to-variable/ Share on other sites More sharing options...
wildteen88 Posted August 30, 2006 Share Posted August 30, 2006 Use file_get_contents if you wenat to store the content of the file in a variable. Link to comment https://forums.phpfreaks.com/topic/19185-page-code-to-variable/#findComment-83035 Share on other sites More sharing options...
barkster Posted August 30, 2006 Author Share Posted August 30, 2006 Thanks for the help just what I needed. Link to comment https://forums.phpfreaks.com/topic/19185-page-code-to-variable/#findComment-83041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.