If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Sending Email - Format the wordings

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-06, 23:06
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
Sending Email - Format the wordings

I have a textarea with some lines, for example,

1. abc
2. fhfg
3. jikl


When i send an email, what will appear in the email will be:

1.abc 2.fhfg 3. jikl


I'm using asp... can anyone tell me how can i make my words appear like what i have type, instead of all appearing togther?

when i send the email, i request.form that textarea values..
Reply With Quote
  #2 (permalink)  
Old 02-28-06, 05:24
kropes2001 kropes2001 is offline
Registered User
 
Join Date: Nov 2005
Location: Honolulu HI
Posts: 118
the email is going out as HTML then ?

i think you need to convert the vbCrLf to a "<br>"

Code:
strMessage=Request.form("Message")
strMessage=replace(strMessage,vbCrLf,"<br>")
every time you hit enter, that is a combination of a Carriage Return and a Line Feed (CrLf) your using vbScripting, so that combo is built into the scripting language (vbCrLf) converting the enter key into HTML Line Breaks (<BR>) will give you the proper formatting.
__________________
.
.
http://www.GetMySiteOnline.com - Can you help me Get My Site Online ? (Yes. That is EXACTLY what we do.)

http://www.GetMySiteOnline.com/FightingSpam/
__________________________
caeli enarrant gloriam Dei !

Last edited by kropes2001; 02-28-06 at 05:28.
Reply With Quote
  #3 (permalink)  
Old 02-28-06, 20:09
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
thanx! i solved it..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On