Skip to content
Advertisement

php email headers with MIME-Version: 1.0

I have these lines of code:

JavaScript

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@domain.comMIME-Version:1.0” and I want it just to say “email@domain.com” 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.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement