Kourier Integrator User Guide

General Reference > Command Reference > KMK.SENDMAIL

KMK.SENDMAIL

Declaration

SUBROUTINE KMK.SENDMAIL(from,to,cc,bcc,subject,attachments,reference,message,error_flag,error_message)

Description

This subroutine sends an email via Internet email.

Input Interface

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.

Output Interface

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.

Example

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

Related Topics: 

KMK.FMTMAIL

Test E-Mail Interface

E-mail Templates

Creating Custom Email Messages

Kourier TCL Commands Overview