Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-03-24
2
Medium Priority
?
410 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 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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…
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 …

618 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