Solved

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

Posted on 2000-03-24
2
384 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 10 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
Read this checklist to learn more about the 15 things you should never include in an email signature.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now