Tam
|
| Posted: 08/17/2005, 10:30 AM |
|
Hi,
I have a textarea named email_message, which is NOT stored in database. As I hit the button EMAIL, I am able to send whatever in textarea to my recipient, and it works fine.
My problem is that the message always displays as one block: I mean even when I type like this in the textarea:
My first line.
<RETURN>
My third line.
The message that I receive in my email is
My first line. My third line.
So, what do I need to do so that the message I receive appear like what I type in the textarea? I do have the content-type of the email header is text/html.
Please help. Thanks.
|
|
|
 |
Damian Hupfeld
|
| Posted: 08/17/2005, 6:19 PM |
|
try using \n
"Tam" <Tam@forum.codecharge> wrote in message
news:543037432c5008@news.codecharge.com...
> Hi,
> I have a textarea named email_message, which is NOT stored in database.
> As I
> hit the button EMAIL, I am able to send whatever in textarea to my
> recipient,
> and it works fine.
>
> My problem is that the message always displays as one block: I mean even
> when I
> type like this in the textarea:
>
> My first line.
> <RETURN>
> My third line.
>
> The message that I receive in my email is
>
> My first line. My third line.
>
> So, what do I need to do so that the message I receive appear like what I
> type
> in the textarea? I do have the content-type of the email header is
> text/html.
>
>
> Please help. Thanks.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Tam
|
| Posted: 08/18/2005, 9:38 AM |
|
Hi there,
I am sorry that you may misunderstood me. As a viewer types in a textarea, they don't type \n but hit the Enter Key. So when I email the message, I want it appear like what they type in the texarea. For instance,
---------Content in textarea ----------
My first line.
My third line.
---------End-------------------------------
will be displayed exactly the same, NOT like
My first line. My third line.
Please suggest. Thanks.
|
|
|
 |
dataobjx
Posts: 181
|
| Posted: 08/19/2005, 6:24 AM |
|
Dim sText
'Get the text area text
sText = MyForm.TheTextArea.Value
'replace all carriage returns with <BR>
sTest = Replace(sText, vbCRLF, "<br>")
_________________
www.DataObjx.net
www.mydigitalapps.com |
 |
 |
Alvaro Cobo
|
| Posted: 08/21/2005, 5:30 PM |
|
Hi Tam:
It is not very elegant, but I had to use the FCKEditor in the text box, so
all the text entered is converted to HTML, and sent to the text field in the
database.
Hope this helps you a bit.
Regards,
Alvaro.
"Tam" <Tam@forum.codecharge> escribió en el mensaje
news:543037432c5008@news.codecharge.com...
> Hi,
> I have a textarea named email_message, which is NOT stored in database.
As I
> hit the button EMAIL, I am able to send whatever in textarea to my
recipient,
> and it works fine.
>
> My problem is that the message always displays as one block: I mean even
when I
> type like this in the textarea:
>
> My first line.
> <RETURN>
> My third line.
>
> The message that I receive in my email is
>
> My first line. My third line.
>
> So, what do I need to do so that the message I receive appear like what I
type
> in the textarea? I do have the content-type of the email header is
text/html.
>
>
> Please help. Thanks.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Tam
|
| Posted: 08/23/2005, 7:18 AM |
|
Thank you both, Dataobjx and Alvaro.
|
|
|
 |
|