[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Mapi(VB6): code to  forward a single mail to mutiple users

Posted on 2000-03-24
2
Medium Priority
?
415 Views
Last Modified: 2006-11-17
I want to write a program using mapi(vb6) to forward a single e mail to multiple email addresses which are picked up from a .ini file at run time.I know how to read emai addresses from file but am not able to forward the mail to multiple email addresses in one go. Please help.
0
Comment
Question by:osho121097
2 Comments
 
LVL 6

Expert Comment

by:Zoplax
ID: 2654064
Check www.freecode.com for samples of VB apps that interact with MAPI.
0
 

Accepted Solution

by:
coop_2000 earned 20 total points
ID: 2684672
Use the MAPI controls ReciepIndex property to loop through your list.  

Here's how to set it up sequentially, to give you an idea:

   With MAPIMessages1

      'First Recipient, TO
      .RecipIndex = 1
      '1 = TO, 2 = CC, 3 = BCC
      .RecipType = 1
      .recipdisplayname = "me@huh.com
     
      'Second Recipient, BCC
      .RecipIndex = 2
      .Reciptype = 3
      .recipdisplayname = "you@what.com"

   End With

After you set all the settings for X many recipients, just send away!

Hope this helps,

Coop
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Changing a few Outlook Options can help keep you organized!
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question