The COMMAND function is used to execute general SMTP commands.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_SMTP.COMMAND (
c IN OUT NOCOPY connection,
cmd IN VARCHAR2,
arg IN VARCHAR2 DEFAULT NULL)
RETURN reply;
UTL_SMTP.COMMAND (
c IN OUT NOCOPY connection,
cmd IN VARCHAR2,
arg IN VARCHAR2 DEFAULT NULL);
Parameters
Parameter |
Description |
|---|---|
| c | The SMTP connection. |
| cmd | The command command sent to the server. |
| arg | The extra information or parameters passed to the cmd command. |
Return value
Return value |
Description |
|---|---|
| reply | The reply to the command. If there are multiple replies, the last reply is returned. |
Considerations
This function returns only one reply line (if there are multiple lines of replies, only the last one is returned). If you need to return multiple reply lines, use command_replies.
