I'm having problems using the mail funtion.
I want to send an html email to my user.
Here is my header and the mail code
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $admin_email\r\n";
Is there something wrong on my code? When I run the above code It will send an email but the problem is the body of email look like this
Content-type: text/html; charset=iso-8859-1 From: firstname.lastname@example.org This is the body.
And the from field is "unknown sender"
What is wrong?
Hope you can help me.