krn.SendMail

This job sends an email to a recipient identified by email address.

In the registry, under HKLM\Software\Optimal Systems\[Application Server Name]\Schemata at least the entry Mailserver (SMTP IP address) must be set.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Currently not supported — pass 0.

Receiver

STRING

Yes

Email address of the recipient

Sender

STRING

Yes

Name of the sender

Subject

STRING

Yes

Subject line of the email

Text

STRING

Yes

Text content of the email

[FileNamePrefix]

STRING

No

Prefix for names of attachment files. A file XYZ.abc will be renamed to <Prefix>.XYZ.abc.

2. Input Files

Name Description

[File list]

Files to be sent as email attachments

3. Return Value

(INT): 0 = Job successful, otherwise error code.