Re: stumped on mailing a complete page
| From: | kevin1 | Date: | Sun, 04 Mar 2001 02:14:06 +0000 |
| Subject: | Re: stumped on mailing a complete page | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42484@lists.php.net to get a copy of this message | ||
use
$filearray = file("http://www.yourstite.com/yourscript.php?some_vars=whatever");
then
$body = join (" ",$filearray);
mail($to $subject,$body);
or something like that. Maybe readfile() may be of use here to. You just want to read the page in as a string, so make sure that you use some method of HTTP GET to grab the file - then you will have the html source seen by the browser. Put that into a string and mail it.