By default, the Simple MAPI protocol, which can be used in Windows to send commands to email client software, does not support the creation of HTML mails.

But there is a simple way to accomplish this, called the “Outlook Express hack”, as it also worked with OE years ago.

Basically, set the body text to NULL. As first attachment, add an HTML file which contains your code. This file’s content will be used as the mail’s body content.

Example using the Simple-MAPI.NET wrapper:

Untested in Outlook, but definitely works with eM Client.

Share This:

  [email protected]