Sends the QUIT command to the server to terminate the SMTP session and disconnect from the server.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_SMTP.QUIT (
c IN OUT NOCOPY connection)
RETURN reply;
UTL_SMTP.QUIT (
c IN OUT NOCOPY connection);
Parameters
| Parameter | Description |
|---|---|
| c | The SMTP connection. |
Return value
| Return value | Description |
|---|---|
| reply | The response to the command. If multiple responses are returned, the last one is returned. |
Considerations
- Send the
QUITcommand to the server to indicate the end of the session. Then, close the connection. You must call this function after callingopen_connection. - If you call
QUITduring an email transaction, it is equivalent to canceling the transaction inRESTmode. - The expected return value is a message starting with
221, indicating that the SMTP server has completed processing and disconnected.