Jump to content

E-Mail not breaking lines


Adastra

Recommended Posts

I'm sending an e-mail via a contact form, but somehow the lines aren't breaking in the text, it always looks like this:

 

lorem ipsum\r\n\r\dolor\r\n\r\n\r\sit\r\n\r\amet\r\n\r\n\r\lorem

 

 

Which is of course not readable at all. What am I doing wrong here? I'm using a few security checks and such for cleaning the field up;

$text = trim($text);
...
$text = stripslashes(strip_tags($text));
...
$text = mysql_real_escape_string($text);
.....

#and then the part where it's included in the message:
$message .= "Nachricht: {$text} \n";

 

Can any of those be causing the display problem?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.