Solved

mapi interface

Posted on 1999-01-13
4
249 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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
RichardE earned 100 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

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 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

11 Experts available now in Live!

Get 1:1 Help Now