textarea -> mail() -> html formatted email

From: Date: Thu, 30 Nov 2000 01:19:27 +0000
Subject: textarea -> mail() -> html formatted email
Groups: php.general 
Request: Send a blank email to php-general+get-27931@lists.php.net to get a copy of this message
Hello, I'm having problems getting e-mail text to format properly. see below: Here is the form method=post: --------------------------------------- <textarea name="body" rows=7 cols=40 wrap="PHYSICAL"></textarea> Here is the php: ----------------- $body=nl2br($body); $fcontents_html .= $body; Here is the html source of the received email: ----------------------------------------------------------- (notice that the PHYSICAL <br>'s aren't getting put in) Hello, <br> <br> Here is some message text. There should be a BR between the words should and be and also between be and and. <br> <br> Regards, <br> Eric Dahnke This is browser independent. I've been through the archives, everyone else seems to have solved their problem with the textarea wrap attr or with the nl2br function. but not me. mailer = qmail. But the rest of the email which includes html and tables and imgs arrives beautifully, so qmail seems good.

« previous php.general (#27931) next »