Re: [請益] mail 更改寄件人

看板PHP作者 (ptt真是什麼都有)時間19年前 (2006/11/13 01:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
$email=$_POST["email"]; //收信人 $title="帳號基本資料"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=Big5' . "\r\n"; $headers .= 'From: '.$companyname.' <webmaster@xxx.com.tw>'; //寄信人 $msg="<head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\" /> </head> <body> 信件內容 </body>"; 上面是變數 使用mail function mail($email,$title,$msg,$headers); ref: http://tw.php.net/function.mail -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.229.145.143
文章代碼(AID): #15LrFxTf (PHP)
文章代碼(AID): #15LrFxTf (PHP)