?
Solved

mapi interface

Posted on 1999-01-13
4
Medium Priority
?
254 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 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