well,
I want a html page, on the net, to be automatically mailed to me.Does any one knows where i can find this kind of script.And whether this is possible with the help of cgi script or php script.
well,
I want a html page, on the net, to be automatically mailed to me.Does any one knows where i can find this kind of script.And whether this is possible with the help of cgi script or php script.
Hi
When do you want it mail....or1)when they fill in some info on the page and hit submitif 1) look at http://www.smos.co.za/knite.php it might help you.. it even sends them an email as well.... (does not work on this site as coded for another) but you will get the idea....2) when they just visit the page??? which would be strange as you could get K's and K's of mail.....
With PHP, yes you can.
Or, if it's an existing page...PHP Code:$page = <<<END
Put page here, no escaping or anything fancy necessary.
END;
mail($to, $subject, $page, "Content-Type: text/html\r\n");
PHP Code:$file = '/home/user/file.htm'; // Can also be an url: http://www.site.com/page.php.
ob_start();
include($file);
$page = ob_get_contents();
ob_end_clean();
$buffer = fgets($handle, 4096);
mail($to, $subject, $page, "Content-Type: text/html\r\n");
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks