Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI OLE control
Message
 
 
À
23/06/1999 15:35:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00233147
Message ID:
00233309
Vues:
28
Carie,

All you have to do is set
with .Message1
   .RecipIndex = 1 
   .RecipDisplayName="TheSecondAddress@whatever.com"
   .ResolveName()
   .RecipIndex = 2
   .RecipDisplayName="TheThirdAddress@whatever.com"
   .ResolveName()
>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform