Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(Log)

Email Mnemonic: (Log=string-argument,string-argument,string-argument)
Discussion: The (Log) mnemonic may be used to specify a log file to record the details of the email sending process. The three parameters are a Comet text file name, a Comet directory to which the user has access, and the word 'erase' if the log should be erased each time. If you specify 'cycle', the log will cycle each time an email is sent. The last 7 email logs will be retained. If the log file name is not specified, a file named "email.log" will be used. If the email directory is not specified, "COS" will be used. By default, the file will not be erased and the new log information will be appended to the existing file. If there is no LOG statement at all, no log file will be generated.
Example:

OPEN (1) "LEH"



PRINT (1) (Log="email.log","cos","cycle")    ! Produces email logs named email.log and email1.log - email6.log

or

PRINT (1) (Log="email.log","cos","erase")    ! Produces only one log file containing the last email attempt

or

PRINT (1) (Log="email.log","cos")            ! If you wish to append to an existing file, exclude the third parameter

or

Print(20)(Log='','')                         ! Logs to EMAIL.LOG on COS appending multiple email session logs

Read about other Email Mnemonics