473,499 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you format output from a textarea sent by email from a form?

1 New Member
I have several forms using the "ServerObjects ASPMailer". When I get the email from a form submission, the textarea comes out as one long line of text. Even when I try to output it into table. I have my textarea set to wrap="physical" and yet there are no breaks when it is submitted. Can anyone help with this or is it always going to be this way? The code is shown below is a stripped demo of what I have. The line w/ testmsg needs to get formatted into a table 400 px wide.

strHTMLBody = "<html><head><title>The Information You Requested</title></head>" & _
"<body bgcolor=""Yellow"" text=""Red"" link=""#0000FF"" vlink=""#800080"">" & _
"<table width=""400px"" cellpadding=""0"" cellspacing=""0"" border=""0"">" & _
"<tr><td width=""400px""><font face=""Arial""><b>Here's the information you requested..." & "</td></tr>" & _
"<tr><td><div width=""400""><font face=""Verdana"" size=""2"">" & testmsg & "</div></td></tr>" & _
"</table>" & _
"<p>" & _
"</body></html>"
Oct 10 '06 #1
0 1503

Sign in to post your reply or Sign up for a free account.

Similar topics

2
7373
by: Martin Foster | last post by:
Hi. I want to do something really simple. I want to be able to write a custom SQL query in a textbox on a webpage, submit it and then output to the webpage in the format of MySQL output i.e....
11
5588
by: Shaiboy_UK | last post by:
Hi All, Hope someone can help here!! I'm putting a standard mail page together, that will allow my users to sent templete emails out to people. The files are stored in text files. I have...
5
2993
by: RICHARD BROMBERG | last post by:
I have a small ASP program ( http://www.dickbrom.com/aspsend/ ) that accepts data from a Form and e-mails it. The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10 COLS=50> </TEXTAREA> ...
4
4875
by: Newbie | last post by:
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea? (cross browser compatable) Any help is...
3
2387
by: soup_or_power | last post by:
Hi My string contains "\t" for tabs. When the string is seen in a texarea I only see "t" without the escape. This is not what I expect. I expect either a blank or escaped-t. Any help is...
16
2768
by: Jen | last post by:
Hi. I have this problem that I think should be easy but have been struggling with this for days. I have a list based on a recordset from a database. This list consists of records meeting a certain...
14
17930
by: ghostwalker | last post by:
Hi I have an HTML form with a textarea on it. When submitted (using 'get' not 'post') this forms action php file simply does this to retrieve the values: $message = $_GET; Now it all works...
6
1903
by: cfish | last post by:
I'm trying to script my contact page and I have everything the way I want it however I cannot get my script to output Address, City, State, Zip & Phone Number when I get a email. It will output...
1
7909
by: cabbiepete | last post by:
In the thread http://www.thescripts.com/forum/thread11792.html this question was posed and while an answer was posted it wasn't explained at all why that worked. I thought I would post the answer in...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.