Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS


Message #1 by "larry Rosenzweig" <rosenzl@o...> on Wed, 19 Feb 2003 14:17:35
I am using cdonts to send mail. I use outlook 2000. I am encountering the 
following problem:

When I use code to display 3 titles and 3 text box values, the third value 
(2 characters)is put on the next line. I am sending using "plain text". 
Here is the code:
_________________________________________________________________________
Mybody = t1name & t1 & " " & hemail & emailfrom & " " & t2name & t2 & " " 
& t3name & t3 & vbcrlf   
mybody = mybody & stname & st
_________________________________________________________________________
T3 does not print on the same line. It appears that plain text won't go 
beyond 74-76 characters, even if I change the auto-wrap from 76 to any 
higher number. However, If I add the code ObjMail.BodyFormat = 0 and
ObjMail.MailFormat = 0 (html format), it ignores my vbcrlf statements and 
displays everything on one line, including stname and st.

I would like to use more than 76 characters on a line. Any ideas on how to 
do that and still have control over line feeds?

Thanks,
Larry

  Return to Index