How can we help?

Using Auron Email Component in Visual C++


Auron Email Component can be used in Visual C++ projects. To do so:

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

The following code shows how to declare, create and use one of the Email 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();