Forum Moderators: coopster
What I'm working on is an app that stores text area text into a database, and then mails the database contents out in a text email. The newlines do show up when I check the table contents in phpMyAdmin, but do not when I sent the contents as an email.
Does anybody know what would cause mail() to strip out newlines?
I assume you are just using \nI'm not sure if it is \n or \r\n or whatever... Does anybody know what the default is for newlines entered into form text areas? The client is outlook 2003. Do you think I should do a find for \n and replace with \r?is it a mail client on a windows machine? I have seen some (and only some) complain about \n alone and require \r\n
ereg_replace("\n","\r\n",@mysql_result(mysql_query("select * from table"),0,"emailfield"));
(I put that in the body of my email.)
I'm tempted to use an html mime type and use pre's to send out the email, but long lines don't wrap in outlook. Anybody know how to get this to work?