I am new in php and trying to send email via php mail function. In gmail account email is displaying properly but other than gmail I received html tags as text in email body.
Here is my code snippet:
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=ISO-8859-1' . "
";
$headers .= "Reply-To:abc@abc.com" . "
";
$headers .= "BCC: $bcc" . "
";
$headers .= "From: $from" . "
";
mail function which I am using is:
mail( $to, $subject, $body, $headers )
Got the solution, I just replaced ' ' with ' ' and it started working perfectly for every mailbox.
Thanks