Hi,
I mean send the ENTIRE HTML PAGE.
Below is the code I am using ....which gives me NO RESULT.
Hi,
I need to send the index page of the website : [url]http://www.zend.com/[/url] to my email [email]nainil@eliteral.com[/email]
My code is mentioned below:
----
<?php
//add From: header
$headers = "From: [email]postmaster@website.com[/email]\r\n";
//specify MIME version 1.0
$headers .= "MIME-Version: 1.0\r\n";
//unique boundary
$boundary = uniqid("HTMLDEMO");
//tell e-mail client this e-mail contains//alternate versions
$headers .= "Content-Type: multipart/alternative" . "; boundary = $boundary\r\n\r\n";
//message to people with clients who don't
//understand MIME
$headers .= "This is a MIME encoded message.\r\n\r\n";
//plain text version of message
$headers .= "--$boundary\r\n" .
"Content-Type: text/plain; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("This is the plain text version!"));
//HTML version of message
$headers .= "--$boundary\r\n" .
"Content-Type: text/html; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("This the <b>HTML</b> version!"));
/* recipients */
$to = "nainil@eliteral.com" . ", " ; // note the comma
$to .= "nainil@gmail.com";
/* subject */
$subject = "Zend Website Details";
/* message */
$message = include("http://www.zend.com");
mail($to, $subject, $message, $headers);
?>
Thank you. Please look into it and Advise.
Nainil Chheda.