Forum Moderators: open

Message Too Old, No Replies

Multiline form field line breaks in HTML emails

HELP! - line breaks get lost in html

         

Numpty

4:53 pm on Nov 30, 2006 (gmt 0)

10+ Year Member



Hello

I have form where I collect customer details. The form also contains a multi line comments field.

The form posts to an asp (classic) script which sends me the email (using CDOSYS).

If I send the email in plain text format, any line breaks entered in the comments field are displayed correctly in the email.

If I send the email in HTML format, the line breaks are lost and the comments field is displayed on one line.

I assume there is a way for me to replace the line breaks with <br> code. Does anyone know how to do this?

Numpty

5:43 pm on Nov 30, 2006 (gmt 0)

10+ Year Member



I sorted this...

Replace(comments, vbcrlf, "<br>")