QUIT is used to terminate the SMTP session and disconnect from the server.
Applicability
This content applies only to the Oracle-compatible mode of OceanBase Database.
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 received, the last response is returned. |
Considerations
- You can send the
QUITcommand to the server to terminate the session and then disconnect from the server. TheQUITcommand must be called after theopen_connectioncall. - If the
QUITcommand is issued during a mail transaction, it is equivalent to canceling the transaction using theRESTmethod. - The expected response is a message that starts with
221, indicating that the SMTP server has processed the request and disconnected.