CDOSYS message body (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


pd_it_guy -> CDOSYS message body (3/21/2008 11:55:45)

After yesterday's success (thank you all again) we have run right smack into another challenge.

The repair request form is supposed to send an informative email message to the repair supervisor.

That part, the CDOSYS mail, now sends just fine.

Today's problem is in the body of the message. It's a strung together block of preamble text, interspersed with some recovered form variables, and more text mixed in. And, it too works just fine, except I would really like to break it up into paragraphs. I tried adding what I though to be a CR LF at the break points by adding &chr(10)&chr(13) and while it continues to work without error, MS Outlook, which is what is going to be used to look at these things completely ignores it and still makes it one big paragraph. I have no ither idea what to bury in the script that will make Outlook or any other mail viewer for tht matter give me a carriage return and line feed.

We can live with this, but it's not as professional looking as I would like to be able to turn out.

Any ideas would be most appreciated. Thanks in advance





rdouglass -> RE: CDOSYS message body (3/21/2008 12:20:05)

quote:

&chr(10)&chr(13)


Try adding a <br> instead. You may be sending it (the body) as HTML. Or you may need to send it as VbCrLf if it's in text. I usually have better luck with one of those vs. the ascii's.

Hope it helps.




pd_it_guy -> RE: CDOSYS message body (3/21/2008 12:32:13)

Now let me get this straight:

Where I want a paragraph break it's

&<BR>

or

&VbCrLf

I will the second one now. This is embedded within VB script and I dont know if it understands a <BR>

Will report back momentarily..





pd_it_guy -> RE: CDOSYS message body (3/21/2008 12:42:38)

Wow that worked!

For the record, I sent the <BR> as a quoted string. But, Outlook didnt print it as such but assumed it was an HTML format request and paragraphs showed up exactly as desired. I guess if that worked I could use <P> and </P> as well. I'll save that for later.


Your wisdom and kind assistance is once again most appreciated.

pd_it_guy




Spooky -> RE: CDOSYS message body (3/21/2008 15:51:04)

Standard formating is plain text, so use &vbrclf for a line return.
If you want more, just use &vbrclf&vbrclf :-)

To use html, you must send it using .HTMLBody and not .TextBody




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125