Using Auron E-mail Component in Delphi
To use the E-mail Component objects in Delphi make sure the component has been installed on the server.
You can find working examples of how to use the Auron E-mail Component in Delphi on github.
First, add a reference to the E-mail 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 E-mail 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.