【发布时间】:2012-05-02 08:57:47
【问题描述】:
我有这几行代码:
$from = "email@domian.com";
$headers = "From:" . $from;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
我需要 MIME 类型,因为我将 file_get_contents 用于 html 文件,我的问题在于它显示为“email@domain.comMIME-Version:1.0”的标题下,我只想说“email@domain. com" 如何从标题中显示的 MIME 类型中取出?
谢谢
【问题讨论】: