Use MAPI to Send E-Mail Messages


You want to send an e-mail message, but you don’t have a Simple Mail Transfer Protocol (SMTP) mail server configured for the computer.


Use the MAPI (Message Application Programming Interface) COM component, which interacts with the mail account configured on the current computer.


MAPI is an interface that allows you to interact with the mailing features that are integrated into the Windows operating system. You can use MAPI (either through its unmanaged API, or through the MAPI COM component) to interact with the default mail client (usually Microsoft Outlook or Outlook Express). Tasks include retrieving contact information from the address box, retrieving the messages in the Inbox, and programmatically ...

Get Microsoft® Visual Basic® .NET Programmer's Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.