How can we help?

Using Auron E-mail Component in Visual C++


Auron E-mail Component can be used in Visual C++ projects. To do so:

  • Import: AxEmail.tlb
  • Include: AxEmailConstants.h

You can find working examples of how to use the Auron E-mail Component in C++ on github.

The following code shows how to declare, create and use one of the E-mail Component objects:

#import "AxEmail.tlb"
#include "AxEmailConstants.h"

...

CoInitialize(NULL);                                        // Initialize COM

AxEmail::ISmtpPtr oSmtp = NULL;                            // Declaration
oSmtp.CreateInstance(__uuidof(AxEmail::Smtp));             // Creation

' Display version information
_tprintf(_T("Auron Email Component %s\n"), (LPCTSTR)oSmtp->Version);

oSmtp.Release();

CoUninitialize();