Configuration File

The EMAILX configuration file is designed to contain those parameters which are most likely to be user-definable yet constant for a given site or application. The file is normally called EMAILX.CFG, although you specify the name (and location; there is no search path) yourself in the XCALL EMAILX statement. The file is a typical text configuration file, and it uses this syntax:

<parameter name> = <value> ; <optional comment>

Parameters

Parameter

Description

Wait

Maximum wait for SMTP response

Server

SMTP server name

Secure

Type of secure connection.

Auth

SMTP authentication.

Username

Username.

Password

Password.

Host

HELO (sending domain)

Domain

Domain to add to unqualified addresses

Rtnaddr

Return address

Replyto

Default reply-to address

Signature

Signature file

Logfile

Log file name

Loglvl

Log level

 

Sample

;EMAILX.SBX configuration file

 

WAIT      = 10                      ; max wait (secs) for SMTP response

SERVER    = localhost               ; SMTP server

SECURE    = STARTTLS                ; use STARTTLS protocol

AUTH      = *                       ; SMTP auth mode (LOGIN or PLAIN)

USERNAME  = yo@micasa.com           ; SMTP login username

PASSWORD  = secret                  ; SMTP login password

HOST      = microsabio.com           ; HELO (sending domain)

DOMAIN    = microsabio.com           ; default domain to add to unqualified addrs

RTNADDR   = ashell@microsabio.com   ; return address (default FROM address)

REPLYTO   = replyto@microsabio.com  ; default Reply-To address

SIGNATURE = EMAILX.SIG              ; signature file (text, amos or native spec)

LOGFILE   = EMAILX.LOG              ; log file name (amos or native)

LOGLVL    = 3                       ;