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

x
?
Solved

mapi interface

Posted on 1999-01-13
4
Medium Priority
?
256 Views
Last Modified: 2013-12-25
I need a mapi interface or the way to envoke it so I can use the autodialer to dial and mail pictures from one place to another.

TIA
0
Comment
Question by:csindorf
[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
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
RichardE earned 400 total points
ID: 1489662
MAPI is fairly simple to use. Here is code that I use in a large project that handles EMail. Just add the MAPI session and MAPI Message controls to your app and name them like I did. GOOD LUCK!
Read the help on MAPI to get the command for attaching your picture files.

mpsSession.SignOn
mpmMessage.SessionID = mpsSession.SessionID
mpmMessage.Compose
mpmMessage.RecipAddress = "EMAIL ADDRESS HERE"    mpmMessage.MsgSubject = "Subject text here"
mpmMessage.MsgNoteText = Text1     'Assumes Text1 has message
mpmMessage.Send False

0
 

Author Comment

by:csindorf
ID: 1489663
I am really in a bind here.  This part of VB is real new to me and I am having trouble getting it to work.  Could you please show me a simple set of code to open MAPI and attach the folder c:\pictures to the email address that is selected in the "address" listbox.  This will happen when the user clicks the "send pictures" command button.  What this program does(supposed to) is when the user selects the folder and a name in the list box the persons email address(not displayed) is to be sent to the MAPI and that folder of pictures is attached to an email message and sent.  the subject of the message will be read in from text3.  I hope this is enough to answer any questions.  but let me know if you need more.

TIA
0
 

Author Comment

by:csindorf
ID: 1489664
that got me started and I found the rest I needed.  thanks
0
 
LVL 1

Expert Comment

by:RichardE
ID: 1489665
I knew you would !
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

596 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