I have a PHP contact form on my website. I have been using it for about a year now without any problems. Nothing has been updated on my website that has do to with the contact form. However, all of a sudden, when a user enters "line breaks" or "paragraphs" in the message box, when I receive the message, instead of having several paragraphs I have 1 long paragraph with " " in place of line breaks.
Here is the code:
$to = "info@mycompany123.com";
$headers = "From: $email";
$subject = $subject;
$body = "Name: $name
"
. "Email: $email
"
. "Subject: $subject
"
. "Message: $message" ;
mail ($to, $subject, $body, $headers) ;
I really do not know why it started doing this out of the blue but any help is greatly appreciated!