Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now