-1
當我發送這個文件時,我發送了word文檔文件,當時它會產生未知格式,如asdfADFDF 0000sadfas15454454
在php中使用mail()發送郵件中的wordfile?
我已經使用郵件功能發送郵件。
這是我的代碼,請檢查並讓我知道。
function sendfile()
{
$id = $_REQUEST['id'];
$s=mysql_query("select * from file_doc where id='".$id."'");
$r= mysql_fetch_array($s);
$r['email']; // user email address
$docfile = "upload/".$r['cv']; // $r['cv'] is docfile
}
ü可以給我充分的細節? –
如果你不得不問,最好甚至不要嘗試。我建議你安裝一個合適的郵件庫,例如PHPMailer或Swift Mailer。 –
這是我的功能 –