Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI Mail to multiple recipients?
Message
 
To
27/12/1999 17:52:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00308978
Message ID:
00308994
Views:
38
>Hi Michael,
>
>>In order to send to several recipients, do I simply loop through the following logic .... or is it more complex than that?
>
>Close, you have to increment the RecipIndex, from the help:
>
>To add a new recipient, set the RecipIndex to a value greater than or equal to the current recipient count while in the compose buffer.

So my code would look like this?:

with THISFORM.oleMAPIMessages
.Compose()
SELECT AccessList
mbhCounter=0
SCAN FOR SendMail
.RecipDisplayName = AccessList.EMail
.RecipIndex=mbhCounter
.RecipType = 1
.ResolveName()
mbhCounter=mbhCounter+1
ENDSCAN
.MsgSubject = "Request for New Project Number!"

....etc???

Thanks again, Mike.
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform