SMTP, MAPI and Lotus Notes compatible.
Adds an attached file to the currently created message.
Command MAILPREP command must be called prior to create message.
Two different types of syntax exist according to the current interface.
Syntax
1) First Syntax (SMTP, MAPI and Lotus Notes)
CHGVAR |
VAR(&CMD) VALUE('MAILATT') |
CHGVAR |
VAR(&PARM1) VALUE('File') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters |
|
Parm1 |
Full path of the file to be attached. |
|
2) Second Syntax (SMTP)
This command can also be used to embed images in a message in HTML format.
The file must be added as message body, using HTML option with the MAILBODYF
command.
The tag inserting the image in the HTML page must have the 'src' property with a value of type "src = cid: IMAGE001.GIF":
<img
src=cid:IMAGE001.GIF>
The second parameter of the MAILATT command must have a value as HEADER="CONTENT-ID:<IMAGE001.GIF>.
NOTICE : Not all e-mail readers support this function !
CHGVAR |
VAR(&CMD) VALUE('MAILATT') |
CHGVAR |
VAR(&PARM1) VALUE('File') |
CHGVAR |
VAR(&PARM2) VALUE('HEADER="CONTENT-ID:<IMAGE001.GIF>"') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters |
|
Parm1 |
Full path of the file to be attached.
|
Parm2 |
Optional.
It allows to embed images corresponding to a message in HTML format. |
Examples
LNCCMD CMD(MAILATT) +
PARM1('\\ADX01\SUPPORT\TEST\LOGOA2.JP+
G') +
PARM2('HEADER="CONTENT-ID:<IMAGE001.GIF>"')
LNCCMD CMD(MAILATT) +
PARM1('\\ADX01\SUPPORT\TEST\IMAGE001.+
GIF')
See also
• MAILPREP
• MAILTEXT
• MAILTO
• MAILPRTY
• MAILSUBJ
• MAILSEND
• MAILEND
• MAILCC
• MAILSMTP