Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00234749
Message ID:
00235094
Views:
22
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform