Solved

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

Posted on 2000-03-24
2
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

If you don't know how to downgrade, my instructions below should be helpful.
Read this checklist to learn more about the 15 things you should never include in an email signature.
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…

739 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