>>.body= filetostr(cFileBadInfo)
>>needs to be replaced with whatever the max-characters for .body ...
>>.body = SubStr(filetoStr(cFileBadInfo),1, maxlim)
>>Who knows what value needs to be assigned to maxlim?
>
>Hi Edgar,
>
>I'm unaware about any limit on the body size in the Outlook itself. Anyway, I think that it would be better to send it as attachment if it's biger than a few pages.
Thanx Sergey,
By trial and error - I did find the limit to be around 550000 characters...
I had some one send a bad file through one of my edit programs which generated about 12 lines of error explanation per line that was sent resulting in this rediculaously hugh error report - stressing my edit program down to it's knees.
The perpitrators have since promised not to send garbage again, BUT,
I simply added code to limit the body size ...
.body= CHR(10)+"Today "+TTOC(DATETIME( ))+ CHR(10)+CHR(13);
+IIF(lGoodFile,FILETOSTR(cLogGood),SUBSTR(FILETOSTR(cLogBad),1, 543000))+ CHR(13)+CHR(10)
Edgar L. Bolton, B.S. B.B.A.