Got a php contact form set up and I’ve made the email it sends formatted with HTML.
$headers .= "MIME-Version: 1.0" . "
";
$headers .= "Content-type: text/html; charset=utf-8" . "
";
$headers .= "From: $email" . "
";
$body .= "<html>";
$body .= "<body>";
$body .= //whatever
$body .= "</body></html>";
$body = wordwrap($body, 70);
$body = stripslashes($body);
It’s all working except for one small problem that seems to be to do with the html formatting of the email…
When the user types a message into the textarea message box, the email sent doesn’t show where they have hit enter and gone to a new line. So their whole message is displayed in one long line, or paragraph, with no spacing.
Does anyone know why this is happening? When I don’t format it in html the spaces the user creates by entering down however many lines are displayed fine, but of course I can’t make the font all pretty if I don’t… =\