Email HTML page contents using PHP
Earlier post explained on {{post id=”how-to-send-e-mail-using-php” text=”how to send a plain email using PHP”}}. This time, we are discussing about sending page contents to email. This technique is based on output buffering. Basically, it would first create read a html file and store in buffer using ob_start(). Next step is to include desire HTML page using include function and then store the contents of that HTML page using ob_get_contents(). Finally use mail() function to send email.





