[Migrated content. Thread originally posted on 03 December 2010]
I have successfully created an application of Outlook, which is called by another program, passing variables such as 'subject' 'body' 'email address' and so forth. Works perfectly, but was based on a an example I found so very much 'monkey see, monkey do' from me.I now wish to send to multiple recipients using a table of email-address I will pass in the calling program so set up a small test. The following code works on the first occurrence but fails on the second occurrence. Exact message is :- 'The item has been moved or deleted' but I cant see why this is happening. Code is:-
perform varying sub from 1 by 1 until sub > 3
modify mailHandle @To = tab-email (sub)
modify mailHandle @Send()
end-perform
I am not sure what the () after the @Send implies, since as I say I am purely basing my program on an example I found, so dont have an explanation of all the example code.



