The RSET command terminates 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 multiple replies are returned, the last reply 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 being sent, it cannot be stopped. - The expected return value is a reply starting with
250, indicating that the current email transaction has been terminated.
