## Documentation

Table of Contents
Class Inheritance Tree

## Index

Package: SMTP

- Goto spec source

# Description

    package Alog.Facilities.SMTP is

SMTP-Logging facility. Used to send log-messages to a configurable mailserver. AWS must be installed for this facility to work.

# Classes

### Instance

- Goto declaration in source
- Goto full declaration in source

    type Instance is new Alog.Facilities.Instance with private;

#### Ancestors:

Alog.Facilities.Instance

#### Primitive operations:

Alog.Facilities.Setup

- To API doc
- To spec

(Inherited)
Alog.Facilities.Teardown

- To API doc
- To spec

(Inherited)
Format_Message
Get_Header

- To API doc
- To spec

Set_Header

- To API doc
- To spec

Set_Recipient

- To API doc
- To spec

Set_Server

- To API doc
- To spec

Write (overriding Alog.Facilities.Write)
SMTP based logging facility.

# Types

### Handle

- Goto declaration in source

    type Handle is access all Instance;

# Constants & Global variables

### No_Recipient

- Goto declaration in source

    No_Recipient    : exception;

No recipient specified. Cannot send mail.

### No_Server

- Goto declaration in source

    No_Server       : exception;

No server specified. Cannot send mail.

### Delivery_Failed

- Goto declaration in source

    Delivery_Failed : exception;

Mail could not be delivered.

# Subprograms & Entries

### Set_Recipient

- Goto spec in source

    procedure Set_Recipient (Facility: in out Instance;Name:        String;EMail:        String);

Set recipient for log-messages. This procedure MUST be called before subsequent calls to Write_Message().

### Set_Server

- Goto spec in source

    procedure Set_Server (Facility: in out Instance;Name:        String);

Set server for log-messages. This procedure MUST be called before subsequent calls to Write_Message().

### Set_Header

- Goto spec in source

    procedure Set_Header (Facility: in out Instance;Header:        String);

Set Message-Header of log-messages.

### Get_Header

- Goto spec in source

    function Get_Header (Facility: Instance) return String;

Get actual Message-Header of log-messages.