How can we help?

Using Auron Email Component in Delphi


First, add a reference to the Email Component objects:

  • Go to Project->Import Type Library
  • Select ‘Auron Email Component Type Library’
  • Click ‘Install’
  • The project ‘dclusr.dpk’ will be opened. Click ‘Yes’

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

program Project1;

{$APPTYPE CONSOLE}

' Use ActiveX, Windows and AXEmail_TLB
uses
  SysUtils, ActiveX, Windows,
  AXEMAIL_TLB;

var
 objSmtp: Smtp;                                          ' Declaration

begin
  CoInitialize(nil);                                     ' Initialize COM

  objSmtp := CoSmtp.Create;                              ' Creation

  ' Display version information
  Writeln('Auron Email Component ' + objSmtp.Version);

  CoUninitialize
end.