I have wrote a simple php script which reads an IMAP email account and displays the body of the most recent mail. There is just one problem, it won't keep the new lines properly. It just puts it all on one line.
I use
imap_fetchbody($conn, $latest, "1");
to read the body of the email. How do I keep the original formatting with all the proper line breaks. Much thanks