Introduction

The purpose of this component is to provide a simple way to send SMTP mail from an application.

This TdvMailX component is a part of the TORDIVEL SOFTWARE SOLUTIONS.

TdvMailX is copyright of TORDIVEL AS 2002.

5 February 2002, Oslo, Norway.

Help Index

•	The Package

•	Properties

•	Methods

•	Events

•	Using the component


The Package

The package consists of

•	TdvMailX.ocx (the component)

•	ReadMe.txt (readme file)

•	TdvMailX.hlp (help file)

•	TestMailX.exe (test program)


Properties

Name	Type	RW	Description
ConfigXML	WideString	RW	The complete configuration in SPB-XML format.


Methods

Name	Parameters	Description
Send	ToAddress: WideString; ToCc: WideString; Subject: WideString; Body: WideString; Attachment: WideString	Sends the e-mail
SetLicence	Licence: WideString
AboutBox		Shows the About box


Events

Name	Parameters	Description
OnSuccess		Occurs when an e-mail is sent
OnError	ErrorCode: integer; Description: WideString	Occurs when an error was detected in the attempt to send an e-mail. ErrorCode = 0: Could not send e-mail ErrorCode = 1: Recipient not found ErrorCode = 2: Invalid host ErrorCode = 3: Header incomplete ErrorCode = 4: Connection failed ErrorCode = 5: Authentication failed ErrorCode = 6: Attachment not found


Using the component

In order to use the component, simply drop it on a form, configure it, and you are ready to send e-mail messages.

The component consists of the following tabs:

•	Message

•	Server

•	User

•	Communication

•	About


Message

Enter To-address, Cc-address (optional), Subject, Body and file attachment (optional), and press the Send button to send the message.


Server

Enter the server’s address and the user ID.


User

Enter user information and signature (optional).


Communication

All sent messages, and error messages, are shown in the log.


About

Pressing the Licence information button displays the component’s licence information.


Licence Information


TORDIVEL SOFTWARE SOLUTIONS

TORDIVEL AS Software House is developing a portfolio of Windows NT/2000 software components and solutions with the following properties:

•	Simple and easy to use

•	Very high quality

•	Requirements from real use cases

•	Easy to deploy

•	"Simply working"

•	Network applications building blocks

Important keywords are: HTTP, TCP/IP, XML, and stateless servers.

These components and solutions are divided into two categories:

•	Professional Software Components

•	Freeware Components Library

We distribute the components and solutions to promote the skills of the experienced developers working at TORDIVEL and want to establish links to developers and companies all over the world.

If you have comments/suggestions your feedback is more than appreciated. Please contact us.

Storgata 20 N-0184 OSLO NORWAY
Telefax +47 2315 8701 Telephone +47 2315 8700
E-mail: office@tordivel.com Web: http://www.tordivel.com


Copyright Notice

(c) 2002 TdvMailX is copyright of

Storgata 20 N-0184 OSLO NORWAY
Telefax +47 2315 8701 Telephone +47 2315 8700
E-mail: office@tordivel.com Web: http://www.tordivel.com