Adds one or several recipients to the e-mail.
You can specify what kind of role the recipients have (TO, CC, BCC).
You must have called the MAILPREP command previously.
Syntax
CHGVAR VAR(&CMD) VALUE('MAILTO')
CHGVAR VAR(&PARM1) VALUE('Recipients')
CHGVAR VAR(&PARM2) VALUE('[*TO|*CC|*BCC]')
CALL PGM(LNCCMD) + PARM(&HANDLE &CMD &OPT &PARM1 &PARM2
&RESULT)
Parameters
Parameters |
|
Parm1 |
List of recipients separated by semicolons.
|
Parm2 |
Role of the recipients : *TO : default value *CC : Carbon Copy *BCC : Blind Carbon Copy |
|
|
Example
LNCCMD CMD(MAILTO) PARM1('"tech@easycom-aura.com";"info@easycom-aura.com"') PARM2('*TO')
LNCCMD CMD(MAILTO) PARM1('"tech@easycom-aura.com";"info@easycom-aura.com"') PARM2('*CC')
LNCCMD CMD(MAILTO) PARM1('"tech@easycom-aura.com";"info@easycom-aura.com"') PARM2('*BCC')
See also
• MAILPREP
• MAILLATT
• MAILTEXT
• MAILPRTY
• MAILSUBJ
• MAILSEND
• MAILEND