>>>Do you have it go to sleep periodically? Would the FoxPro WAIT command help? Also, how do you know whether an E-mail was successfully sent to the SMTP server? Does MailX Extension handle these issues?
>>
>>If you plan to deliver at least 5000 emails per day, then you should consider having a dedicated server.
>>
>>After a sendmail, you can check the error code to see the status.
>
>How do you check for the error code? Do you use the return value from Windows API WinExec(), or do you use some other method?
Whenever you use an OCX, you usually get the error from it by using properties or methods.
In the case of MailX, there is a property ErrCode or something like that which always contains the last method result. If it's 0, it's ok. Otherwise, you can take action base on the error returned.