Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00234749
Message ID:
00235094
Vues:
23
>Hi all!
>
>I have a problem with using MAPI ActiveX controls in VFP 6.0.
>I would like to compose a new message to more receipent. I do not know what property I have to specify, because if I send only for one person it is working. Also is there a possibility to send a message to CC and BCC.
>
>Thanks
> Iván

The MAPI ActiveX controls handle information in collections. So you have to deal with and increment an index in a loop then set the recipient properties inside a loop. There are free samples in the files section showing how to do this.

Our Mail Manager product (a demo is available in the files section) provides a simplified interface:

oMail = CREATEOBJECT("MailManager")
WITH oMail
.Compose
.AddRecipient("Someone@Somewhere.com", "Someone's Name")
.AddRecipient("SomeoneElse@Somewhere.com", "Someone Else's Name")
.Subject = "Subject here"
.Body = "Message here"
.Send
ENDWITH

In addition to an email engine, Mail Manager also includes a form component that you can drop on your form and bind to your form fields or map to expressions to allow an email to automatically be sent for each record in a queried resultset.
R. Scott Mackay
Classy Components Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform