Jump to content

Archived

This topic is now archived and is closed to further replies.

barkster

Page Code to Variable?

Recommended Posts

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

Share this post


Link to post
Share on other sites
Use file_get_contents if you wenat to store the content of the file in a variable.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.