Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI OLE control
Message
From
24/06/1999 09:02:41
 
 
To
23/06/1999 17:45:37
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00233147
Message ID:
00233450
Views:
25
Bela,

As the matter of fact, I tried it before I posted my original message and forgot to include that it did not work.

I'll try looping then. Thanks to all for helping me.

P.S. Good work, Nigel!


CARIE


>>Can someone please post me a sample code of how to send email message to multiple recipients using MAPI OLE control in VF6?
>>
>>I have the following working code, but it only sends to one recipient:
>>oForm = CREATEOBJECT("Form")
>>WITH oForm
>> .AddObject("Session1","olecontrol","MSMAPI.MAPISession.1")
>> .AddObject("Message1","olecontrol","MSMAPI.MAPIMessages.1")
>> .Session1.SignOn
>> .Message1.SessionID=oform.Session1.SessionID
>> .Message1.RecipDisplayName="Recipient's address here"
>> .Message1.MsgSubject="Subject here"
>> .Message1.MsgNoteText="Message here"
>> .Message1.Send
>> .Session1.SignOff
>> .Release
>>ENDWITH
>>
>>Do I have to loop through the code each time in order to send it to each recipient? Or is there a simplier way to do so?
>>
>>Thanks in advance for your help.
>>
>>CARIE
>
>Hi Carie!
>
>Your idea is good if you want to send individual letters for every one.
>
>But what about:
>.Message1.RecipDisplayName="Recipient1's address here, Recipient2's address here, ..... ,RecipientN's address here"
>
>BB
Previous
Reply
Map
View

Click here to load this message in the networking platform