i think phpFormGenerator sends out HTML emails instead of text, i'm not completely sure if certain versions send text emails. if they do, then the HTML tags have to be stripped from them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got PHP form generator working great. However, when people write us messages with paragraph breaks, we get <br /><br /> in the received emails.
Is there a way to smooth this out so we get actual breaks instead of the HTML code?
i think phpFormGenerator sends out HTML emails instead of text, i'm not completely sure if certain versions send text emails. if they do, then the HTML tags have to be stripped from them.
I found the answer here: http://www.webproworld.com/graphics-design-discussion-forum/69435-php-form-generator-coding-issue.html
Yes, I'd prefer text emails. How do I strip the HTML tags?
I got the answer on another board.
Here's what I did. I swapped this code in the process.php :
$message=preg_replace("/(\015\012)|(\015)|(\012)/"," <br />", $message);
For this code:
$message = str_replace("<br />", "\r\n", $message);