I have these lines of code:
$from = "[email protected]"; $headers = "From:" . $from; $headers .= "MIME-Version: 1.0rn"; $headers .= "Content-Type: text/html; charset=ISO-8859-1rn";
I need the MIME type because I am using file_get_contents for an html file, my problem is under the headers it displays as “[email protected]:1.0” and I want it just to say “[email protected]” how do I take out the MIME type in the from displaying in the header?
Thanks
Advertisement
Answer
Just add rn after the From: header as well.
$headers = "From:" . $from . "rn";