I am using the following code:
$useremail="xxx@gmail.com";
$admin_email="yyy@gmail.com";
$sub="some meassage";
$content=<design with tables>.................;
$reval=mail($useremail,$sub,$content,'From:'. $admin_email));
The code sends the email correctly, but it displays in text format not HTML format which is what I want.
I am using Content-type:
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From:'. $admin_email. "\r\n";
$reval=mail($useremail,$sub,$content,$headers);
In this method the email is not delivered.