Kourier Integrator Online Help
SUBROUTINE KMK.SENDMAIL(FROM, TO ,CC, BCC, SUBECT, ATTACHMENTS, REFERENCE, MESSAGE, ERROR_FLAG, ERROR_MESSAGE)
This subroutine sends an email via Internet email.
FROM |
Who the e-mail is from. |
TO |
Who the email is to. May be a system-delimited list of PREVIEW user-ids or e-mail addresses. |
CC |
Who the email is copied to. May be a system-delimited list of PREVIEW user-ids or e-mail addresses. |
BCC |
Who the email is blind copied to. May be a system delimited list of PREVIEW user-ids or e-mail addresses. |
SUBJECT |
Subject of the email. |
ATTACHMENTS |
File attachments. May be a system-delimited list of file names (requires full UNC). |
REFERENCE |
Used defined reference string. |
MESSAGE |
Message body of email. |
ERROR_FLAG |
Undefined. |
ERROR_MESSAGE |
Undefined. |
FROM |
Unchanged. |
TO |
Unchanged. |
CC |
Unchanged. |
BCC |
Unchanged. |
SUBJECT |
Unchanged. |
ATTACHMENTS |
Unchanged. |
REFERENCE |
Unchanged. |
MESSAGE |
Unchanged. |
ERROR_FLAG |
If non-null, message number to issue. |
ERROR_MESSAGE |
Parameters required by the message. |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. |
FROMADR = 'bill_gates@microsoft.com' TOADR = 'janet_reno@doj.gov'' CC = '' BCC = '' SUBJ = 'Kourier e-mail test' ATTCH = '' REF = 'TEST' MSG = 'This message was sent using Kourier' CALL KMK.SENDMAIL(FROMADR,TOADR,CC,BCC,SUBJ,ATTCH,REF,MSG,ERRNO,ERRMSG) IF ERRNO THEN PRINT ERRMSG |