Do you want to send all the contents of a webpage to your mail??
With this Code, You can send the contents of a Webpage to mail.
You can also set a cron job so that the particular page gets updated and is send to a particular mail which u set .
<? $to = ‘firstname.lastname@example.org’; $subject = ‘A test email!’; // To send HTML mail, the Content-type header must be set $headers = ‘MIME-Version: 1.0? . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1? . “\r\n”; // fetch Remotely $message = file_get_contents('http://example.com/filename.html'); // Mail it mail($to, $subject, $message, $headers); ?>
You may also send customized message as follows, just replace ” $message = ” with :
// fetch locally $message = file_get_contents('filename.html'); // Put your Text here $message = 'hello world';
Need any sort of help in modifying the code ?? Pls Drop your Comments, am here to help you 🙂