COMMAND procedure - Run an SMTP command
The COMMAND procedure provides the capability to execute an SMTP command.
Note: Use COMMAND_REPLIES if multiple reply lines are
expected to be returned.
Syntax
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.
- reply
- An optional output argument of type REPLY that returns a single reply line from the SMTP server. It is the last reply line if multiple reply lines are returned by 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.