作者shenghong (ptt真是什麼都有)
看板PHP
標題Re: [請益] mail 更改寄件人
時間Mon Nov 13 01:11:24 2006
$email=$_POST["email"];
//收信人
$title="帳號基本資料";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=Big5' . "\r\n";
$headers .= 'From: '.$companyname.' <
[email protected]>';
//寄信人
$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