codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  asp and cdo email  craigsobel at 22:40 on Friday, July 20, 2007
 

I am using asp to send email and it is working but there seems to be something going on with the HTMLBody statement. Every 989 characters the system places a ! and carriage return. This creates exclamation points to appear randomly in the result. If this occurs in an html tag, it can screw up the format of the email. Does anyone know if there is a limit or default line length that can be lengthened.

Thanks

Craig

  Re: asp and cdo email  gls0151 at 19:58 on Saturday, July 28, 2007
 

Craig,

Did you get an answer to your question. I'm having the same problem and it's driving me nuts!

Thanks,
Greg

  Re: asp and cdo email  craigsobel at 05:49 on Monday, July 30, 2007
 

No, I have not gotten any solutions. I did write a routine to make sure that the extra characters do not occur within an html tag. It is not perfect, for instance, hopefully the body does not contain any < or > symbols in the wanted text.

do while a=<len(mbody)
mcounter=0
mlastopen=0
for a=1 to len(mbody)
if mid(mbody,a,1)="<" then
mcounter=mcounter+1
mlastopen=a
end if
if mid(mbody,a,1)=">" then
mcounter=mcounter-1
end if
if int(a/989)=a/989 then
' i am at 989 here. if the counter is >0 then I am in a tag
if mcounter>0 then
mbody=mid(mbody,1,mlastopen-1) & " " & mid(mbody,mlastopen,len(mbody))
exit for
end if
end if
next
if a=> len(mbody) then
exit do
end if
loop


Craig









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Insert Contents of .txt file into a .html page
•  Re: Perl regular expression problem.
•  Re: Problems in login using WWW::Mechanize
•  searching for gd::graph guide
•  Re: ARRAY OF HASHMAPS
•  Adv. Regexp or Otherwise
•  Adv. Regexp or Otherwise
•  I need help pleasee! My project is about using I/o Stream
•  Help Running VB script in Windows 2003


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008