DB2 Version 9.7 for Linux, UNIX, and Windows

COMMAND_REPLIES procedure - Run an SMTP command where multiple reply lines are expected

The COMMAND_REPLIES function processes an SMTP command that returns multiple reply lines.

Note: Use COMMAND if only a single reply line is expected.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-UTL_SMTP.COMMAND_REPLIES--(--c--,--cmd--,-------------------->

>--+-----------------+--)--------------------------------------><
   '-arg--,--replies-'      

Parameters

c
An input or output argument of type CONNECTION that specifies the SMTP connection to which the command is to be sent.
cmd
An input argument of type VARCHAR(510) that specifies the SMTP command to process.
arg
An optional input argument of type VARCHAR(32672) that specifies an argument to the SMTP command. The default is NULL.
replies
An optional output argument of type REPLIES that returns multiple reply lines from the SMTP server.

Authorization

EXECUTE privilege on the UTL_SMTP module.

Usage notes

This procedure can be invoked using function invocation syntax in a PL/SQL assignment statement.