|
 |
asp_cdo thread: Simple Text Email Formatting
Message #1 by Bernard Beegle <BBeegle@m...> on Wed, 16 Jan 2002 17:41:27 -0500
|
|
Hi All,
I've got what I think is a very easily solved problem. I'm using CDONTS to
simply send and email message from within my ASP app. However, I simply
cannot get over the hump of trying to figure out how to format the message
body when the type is basic text. What I want to do is simple carriage
returns, tabs, bold if possible, etc. the message body. So, what do I
insert in the body string as special characters that will be interpreted by
a text email client as carriage returns, tabs, etc.?
Thanks for your help,
Bernie
Message #2 by "Martin Grundy" <martin.grundy@s...> on Thu, 17 Jan 2002 09:37:52
|
|
Hello, Bernie.
Yes, it is very easy to format plain text e-mail. For example, in VBscript:
MyLine1 = "Here is line 1."
MyLine2 = "Here is line 2."
myMail.Body = MyLine1 & Chr(13) & MyLine2
in other words, use Chr(13) to create a line break.
I have not tried tab, but it is Chr(9).
I had imagined that other formatting, such as bold, was "illegal" in plain
text e-mail, so I have not even attempted that.
Good luck,
Martin
> Hi All,
>
> I've got what I think is a very easily solved problem. I'm using CDONTS
to
> simply send and email message from within my ASP app. However, I simply
> cannot get over the hump of trying to figure out how to format the
message
> body when the type is basic text. What I want to do is simple carriage
> returns, tabs, bold if possible, etc. the message body. So, what do I
> insert in the body string as special characters that will be interpreted
by
> a text email client as carriage returns, tabs, etc.?
>
> Thanks for your help,
> Bernie
>
|
|
 |