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*. |
|
|
*Properties |
|
subject |
Message subject.
|
priority |
Message priority level (from 0 to 5, less important to most important).
|
charset |
Sets
characters encoding type used.
|
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
• MAILLATT
• MAILTEXT
• MAILTO
• MAILPRTY
• MAILSUBJ
• MAILSEND
• MAILEND
• MAILCC
• MAILSMTP