MX Send E-mail Forum :: form email
This thread was displayed: 0 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Danny Dawson
05-16-2007 16:33:07 GMT +2
|
Hello
Can any help please. When I have a message field the reply email comes back in one big paragraph. If someone does 'returns' in the text area field, how can I achieve the new paragraphs for viewing in the email body?
many thanks
Danny
|
|
|
Guenter Schenk
05-17-2007 01:10:12 GMT +2
|
Hi,
if it´s PHP, using "nl2br" (new line to break) should work:
<?php echo nl2br($_POST['messagefield']); ?>
Günter
|
|
|
Danny Dawson
05-17-2007 12:14:35 GMT +2
|
Hello
Thanks for that. I tried this but it still doesn't seem to work. I have used the custom form wizard from the MX Kollection and the coding generates the following for the text area
<textarea name="Message" id="Message" cols="33" rows="5"><?php echo KT_escapeAttribute($row_rscustom['Message']); ?></textarea>
Is this the right coding to put in the 'new line to break'?
Many thanks
Danny
|
|
|
Guenter Schenk
05-17-2007 16:23:54 GMT +2
|
>>
Is this the right coding to put in the 'new line to break'?
>>
no, you wouldn´t have to add nl2br to the textarea code, because a textarea does produce line breaks already, you´d need to apply nl2br to the script or the page that´s sending the email -- are you using MX Send Email for that ?
One hint :: If you´d replace the standard textarea with KTML or any other WYSIWYG editor like TinyMCE, you´d actually get real HTML line breaks (<br />), and MX Send Email would send them correctly.
Günter
|
|
|