_log2mail

Synopsis

_log2mail.vbs

Description

This script is a non-public script. It sends a mail containing the current lappdeploy log messages. See Usage description syntax for details about used syntax.

This script is a Windows Script one. Thus, it must be used launch with cscript command. (e.g. cscript.exe _log2mail.vbs)

This script use Microsoft Collaboration Data Objects for Windows 2000 and is inspired from the VBScript To Send Email Using CDO from Paul Sadowski.

Command line options

none

Exit code

0

no error

1

the summary log doesn’t exist

2

the server name is empty or not defined (fix SMTP_SERVER environment variable)

3

the recipient mail address is empty or not defined (fix TO_MAIL_ADDR environment variable)

Environment variables

The following environment variables affect the execution:

TO_MAIL_ADDR

WARNING_LOGFILE

FROM_MAIL_ADDR

SUMMARY_LOGFILE

SMTP_SERVER

UPDATE_LOGFILE

SMTP_SERVER_PORT