Solved

mapi interface

Posted on 1999-01-13
4
251 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Suggested Solutions

Title # Comments Views Activity
Computer crashes, following error message in event manager 5 234
How does CurrentUser work? 10 38
VBA - If Bookmark = "XXBOOKMARKXX" then 15 40
backup program with robocopy 6 42
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.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

809 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