Better late than never. I just realised I should be using
lenb(mail.rawsource)

then it works

On 4/19/07, Fred Stephenson <[EMAIL PROTECTED]> wrote:
> On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Thanks for following up -- I was scratching my head at your post, with
> > nothing useful to say, since I've been using the SMTP class for over a
> > year without noticing any such problem.
>
> same here
>
> >
> > In this case, I'm sure it's not getting the length of the mail that
> > matters, but asking it to compute the source.  I can imagine that if
> > you do this at the wrong time, it might force it to pre-render the
> > message, and if you then add more attachments or whatnot, it gets
> > confused... but this is all hand-waving speculation.
> >
> This was after having appended the message to the socket
>
>       socket1.messages.append mail
>       i=lenb(mail.Source)
>       totsizes.append i
>
> I wanted to use the sizes to indicate progress during sending.
>
> Thanks
>
> Fred
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to