作者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