Re: Wait 3 seconds before run next line

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jose Rojas (demon090977_at_comcast.net)
Date: 11/28/04


Date: Sat, 27 Nov 2004 21:13:13 -0600

Michael, thanks for the prompt attention to this post.

Its there any sample that you can help about checking to see if the CDOSYS
its ready for the next message, I try allow the system to wait for a couple
of seconds but that will only work if I know the total size of the file.

Thanks in advance for any help.

Jose
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message
news:OrxRYpO1EHA.1404@TK2MSFTNGP11.phx.gbl...
> System.Threading.Thread.Sleep(3000).
>
> The real issue here is that you need to check if the underlying CDOSYS
> component is ready for the next message. I know in .Net Runtime 2.0 Beta
> 1
> there is a property to check for this. There should also be a way to
> check
> in the .Net Runtime 1.1. If there isn't, what you need to do is create a
> new instance of the SMTPMail object for each message. This will allow
> each
> email to complete asynchronously. You can safely discard any processing
> instances as CDOSYS will complete its internal send method before
> releasing
> any resources it allocated.
>
> Mike Ober.
>
> "Jose Rojas" <demon090977@comcast.net> wrote in message
> news:JLidneFJir4UjTTcRVn-gg@comcast.com...
>> We are trying to send files to our list of clients at work, I been able
>> to
>> produce the code that sends e-mail, but I only can do it for 2 before it
>> gave me an error, how can I do it that the system wait for 3 seconds
> before
>> I execute the next line?
>>
>> Thanks in advance for your help.
>>
>>
>>
>
>