MAPISendMail (mapi32)
Last changed: -66.153.46.146

.
Summary
MAPISendMail - Sends a message.

C# Signature:

  /// <summary>
  /// The MAPISendMail function sends a message.
  ///
  /// This function differs from the MAPISendDocuments function in that it allows greater
  /// flexibility in message generation.
  /// </summary>
  [DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
  public static extern uint MAPISendMail(IntPtr lhSession, IntPtr ulUIParam,
    MapiMessage lpMessage, uint flFlags, uint ulReserved);

VB Signature:

  Please add!

User-Defined Structures:

MAPI

User-Defined Constants:

MAPI

Notes:

This signature is valid, if the MapiMessage is defined as a class. If MapiMessage is defined as a structure a 'ref' has to be added before 'MapiMessage lpMessage' parameter

Tips & Tricks:

Watch it! MAPI32 is not supported from managed code [http://blogs.msdn.com/mstehle/archive/2007/10/03/fyi-why-are-mapi-and-cdo-1-21-not-supported-in-managed-net-code.aspx]

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation