use*_*331 0 php email mime header
我有这些代码行:
$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";
Run Code Online (Sandbox Code Playgroud)
我需要MIME类型,因为我使用file_get_contents作为html文件,我的问题是在它显示为"email@domain.comMIME-Version:1.0"的标题下,我只想说"email@domain.com"如何从标题中显示的内容中取出MIME类型?
谢谢