I am working on a pop3 client program using PHP and its imap group of functions. I am able to download my email but the body of the text loses all the enter keys and the message shows as continuous lines.
My code simply refers to the $msg["body'] as a whole and this is retrieved using either the imap_fetchbody, imap_base64 or the imap_qprint functions. How can I tell these functions to retain the enter keys in the emails the way I see them in my email server.
Thanks all!
chr(13) is lost on mail retrieval
Moderator: General Moderators
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
If, by 'Enter Key', you mean CRLF (carriage return/line feed) characters, you may be looking for nl2br although I'm not certain how/if it works with the imap_ functions.