navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

CDOSYS message body

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> CDOSYS message body
Page: [1]
 
pd_it_guy

 

Posts: 97
Joined: 3/4/2008
Status: offline

 
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

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
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.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to pd_it_guy)
pd_it_guy

 

Posts: 97
Joined: 3/4/2008
Status: offline

 
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..


(in reply to pd_it_guy)
pd_it_guy

 

Posts: 97
Joined: 3/4/2008
Status: offline

 
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

(in reply to pd_it_guy)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to pd_it_guy)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> CDOSYS message body
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts