How-to retrieve email with MAPI.Show

Visual Basic

How-to retrieve email with MAPI.Show

Postby Jorge Marques » Sat, 02 Aug 2003 03:14:27 GMT

Hello everyone.

I am using MAPI to send messages but I need
to retrieve the email address from Outlook Express
Address Book.

I use MAPIMessages1.Show and I get the address book
but I do not know how to retrieve the email address
from the dialog box.

Can you please help with some sample code how to do that.

Thanks in advance.


Similar Threads:

1.How to send email from Access VBA for any MAPI email

How can I generalize the following code so that it can work with any default 
MAPI email program that a user might have other than Outlook, such as Outlook 
Express or Eudora?  This is my first attempt to generate email from Access 
VBA, so I will appreciate any help.

    Dim olApp As Object
    Dim olNs As Object
    Dim olMail As MailItem
    On Error GoTo ErrorHandler
    Set olApp = CreateObject("Outlook.Application")
    Set olNs = olApp.GetNamespace("MAPI")
    Set olMail = olApp.CreateItem(olMailItem)
    With olMail
        .To = EmailToName
        .Subject = EmailSubject
        .Attachments.Add FilePath & FileName
    End With
    Set olNs = Nothing
    Set olApp = Nothing

2.Howto retrieve all available classes in an assembly?

Hi all,

Is it possible in VB.NET to retrieve a list of available classes in the
current assembly?

I know that there are many things you can do with the System.Reflection
namespace, like dynamically creating an instance of a class, but I haven't
found anything which can help me in getting the info out of the assembly
what I want.

Friso Wiskerke

3.HOWTO: Retrieve FileName from a Font Name?

I have a friend that does not know much about computers. He wants to send a
font that is on his system to a friend of his.  He knows the font name (of
course) but with Windows Systems, you browse to \Windows\Fonts, you open the
font folder, but you see no file names.  So, there's no way to copy the

I told him how to find out the file name (Right-click on the font name and
get the properties) and then in a command window, go to that folder and
manually copy it out of there to another folder.

That's just too long for him to do.  So, I thought I'd see if there's anyway
I could write a small program to do this for him.  I can enumerate the fonts
and get their names, but I need to know if there's anyway to find the
filename for a specific font.

Thank you

4.[Q] HOWTO show WebPage on a WinForm


I'm looking for a way to display a HTML-page in a part of a WindowsForm.
I was thinking of  Embedding a IE on a WinForm.

Can any-one give me some advise on how to deal with this problem ?



5.Howto show specific contextmenu in Listview for ColumnHeader?


using VS2005 I want to be able to implement a ListView in details-mode
with contextmenu-functionality like windows explorer.
IE, I want to show a contextmenu when I right-click the columnheaders
where I can choose the columns to display, but I don't want that
contextmenu to show if I click on the items or empty space in the list.

Can it be done?

Regards, Stefan

6. HOWTO: Show Form Using Name In Folder

7. HOWTO: Show MousePointer As Hourglass Without Reverting

8. HOWTO: Make an interface show up in VB6?

Return to Visual Basic


Who is online

Users browsing this forum: No registered users and 90 guest