The RSET command is used to terminate the current email transaction.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_SMTP.RSET (
c IN OUT NOCOPY connection)
RETURN reply;
UTL_SMTP.RSET (
c IN OUT NOCOPY connection);
Parameters
| Parameter | Description |
|---|---|
| c | The SMTP connection. |
Return value
| Return value | Description |
|---|---|
| reply | The reply to the command. If there are multiple replies, the last one is returned. |
Considerations
- The
RSETcommand allows you to cancel an email that is being written without sending it. You can use it betweenopen_connectionanddataoropen_datato cancel the email transaction. However, once the email starts sending, it cannot be stopped. - The expected return value is a reply starting with
250, indicating that the current email transaction has been terminated.