Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI OLE control
Message
 
To
23/06/1999 15:35:45
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00233147
Message ID:
00233367
Views:
29
>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

Have a look in the files section here. I have a class there that you *may* be able to download. If you can't do it there, look on http://www.nbcsoftware.com - apparently, you now need to be a Premier Member to download this class from the files section here!

My class will do the job for you (or at least show you how). Basically, you create a loop, updating the RecipCount for each recipient.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform