|
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
|
|
|
Craig,
Did you get an answer to your question. I'm having the same problem and it's driving me nuts!
Thanks,
Greg
|
|
|
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
|
|
|
|
|
|
|
// |