Thanks Guys!
I actually was able to send the whole page. All I did was to open that file with fopen while passing the variable into it and it worked out perfectly. Here is the code-
- Code: Select all
<?php
$e_mail_subject = "something";
$handle = fopen ("http://www.someabsolutefilename?variablename=$variablevalue", "r");
while (!feof ($handle)) {
$buffer = fgets($handle, 4096);
$reply .= $buffer;
}
fclose ($handle);
$mime_boundary = "<<<--GB--" . rand(10000,32000) . "-" . rand(10000,32000) . "--BG-->>>";
$headers .= "From: $call_employee <$call_emp_email>\r\n";
$headers .= "To: $v_call_contact <$v_call_email>\r\n";
$headers .= "Bcc: $call_employee <$call_emp_email>, AnotherOne <another email>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/mixed;\r\n";
$headers .= " boundary=\"".$mime_boundary."\"";
$message .= "This is a multi-part message in MIME format.\r\n";
$message .= "\r\n";
$message .= "--".$mime_boundary."\r\n";
$message .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$message .= "Content-Transfer-Encoding: 7bit\r\n";
$message .= "\r\n";
$message .= $reply;
$message .= "\r\n";
$message .= "--".$mime_boundary."\r\n";
?>
And that's it, using the simple mail() function of PHP it went on!!!
Enjoy!
GB