Hello, developers.
I have this [1] html page which uses css and images and want to send it as email where the recipients must be online in order to download the css and images.
I use the following code to read the page and show it, before sending the email...
<?php
$file = '../archivo/infomens/html/2006-05.html';
// open file
$fh = fopen($file, 'r') or die('Could not open file!');
// read file contents
$message = fread($fh, filesize($file)) or die('Could not read file!');
// close file
fclose($fh);
// print file contents
echo $message;
?>
... but stylesheet and images won't load and the rendered page shows only text.
Strange behaviour, trying with another page [2] I have no problem loading it into a variable and sending it by email.
[1]<[2]<
Arlequín
arlequin_AT_montevideo_DOT_com_DOT_uy
I have this [1] html page which uses css and images and want to send it as email where the recipients must be online in order to download the css and images.
I use the following code to read the page and show it, before sending the email...
<?php
$file = '../archivo/infomens/html/2006-05.html';
// open file
$fh = fopen($file, 'r') or die('Could not open file!');
// read file contents
$message = fread($fh, filesize($file)) or die('Could not read file!');
// close file
fclose($fh);
// print file contents
echo $message;
?>
... but stylesheet and images won't load and the rendered page shows only text.
Strange behaviour, trying with another page [2] I have no problem loading it into a variable and sending it by email.
[1]<[2]<
Arlequín
arlequin_AT_montevideo_DOT_com_DOT_uy