Re: [請益] mail 更改寄件人
$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
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
4
5
PHP 近期熱門文章
PTT數位生活區 即時熱門文章