I am using the following line of code to mail some information from a form.
$htmlFrom = "From: $adminEmail\nContent-Type: text/html; charset=iso-8859-1";
mail($previewSender, $subject, $completeHtmlEmail, $htmlFrom);
The strange thing is when I receive the email there are random exclamation points inserted into the email. This only happens in the html version of the email. I use the same code in the plain text version:
$plainFrom = "From: $adminEmail\n";
mail($previewSender, $subject, $completePlainEmail, $plainFrom);
But the probelm does not occur in the plain-text version. Any ideas? Is there a different encoding I should be using or does Php start behaving strangely after a certain amount of characters? Thank you for all of your help!