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 additional information or parameters passed to the cmd command. |
Return value
| Return value | Description |
|---|---|
| reply | The reply to the command. If multiple replies are returned, only the last one is returned. |
Considerations
This function returns only the last line of the reply (if multiple lines are returned). If you want to return multiple reply lines, use command_replies.