PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > MAILPREP command
MAILPREP command

 

 

SMTP, MAPI and Lotus Notes compatible

 

Creates a message to be sent through the messaging system.

This command must be called prior to message creation.

For this function, two different types of syntax exist according to the messaging interface.

 

Syntax

 

1)  First Syntax (MAPI and Lotus Notes).

 

CHGVAR

VAR(&CMD) VALUE('MAILPREP')

CHGVAR

VAR(&PARM1) VALUE('Recipients')

CHGVAR

VAR(&PARM2) VALUE('Object')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

Parameters

 

Parm1

Recipients list separated with semicolons.

 

Parm2

Message object.

 

 

2)  Second Syntax (SMTP)

 

NOTICE : With SMTP, MAILSMTP Command must be run prior to MAILPREP Command.

 

CHGVAR

VAR(&CMD) VALUE('MAILPREP')

CHGVAR

VAR(&PARM1) VALUE('Recipients')

CHGVAR

VAR(&PARM2) VALUE('

[subject="subject";]

[priority=0 to 5;]

[charset=encoding type;]

[report]

')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

 

 

Parameters

 

Parm1

 

Parm2

Recipients list separated with semicolons.

 

Characters chain including various properties*.
All properties are optional.

 

 

 

 

 

*Properties

 

subject

Message subject.

 

priority

Message priority level (from 0 to 5, less important to most important).

 

charset

Sets characters encoding type used.
Possible values :  ASCII, UTF-8, UTF-7, UTF-32, Unicode.

 

report

If this property is present into Parm2, therefore the delivery report is activated.

 

 


 

 

Example

 

LNCCMD CMD(MAILPREP) PARM1('tech@easycom-aura.com')    PARM2('subject="test";priority=5;report')



See also

 

LNCSNDMAIL - CL Command

MAILLATT

MAILTEXT

MAILTO

MAILPRTY

MAILSUBJ

MAILREPORT

MAILSEND

MAILEND

MAILBODYF

MAILCC

MAILSMTP