AUTH is used to send an authentication request to the SMTP server.
Applicability
This content applies only to the Oracle-compatible mode of OceanBase Database.
Syntax
UTL_SMTP.AUTH (
c IN OUT NOCOPY connection,
username IN VARCHAR2,
password IN VARCHAR2,
schemes IN VARCHAR2 DEFAULT NON_CLEARTEXT_PASSWORD_SCHEMES)
RETURN reply;
UTL_SMTP.AUTH (
c IN OUT NOCOPY connection,
username IN VARCHAR2,
password IN VARCHAR2,
schemes IN VARCHAR2 DEFAULT NON_CLEARTEXT_PASSWORD_SCHEMES);
Parameters
| Parameter | Description |
|---|---|
| c | The SMTP connection. |
| username | The username. |
| password | The password. |
| schemes | The authentication schemes allowed and in the preferred order. Currently, PLAIN and LOGIN are supported. |
Return value
| Return value | Description |
|---|---|
| reply | The reply to the command. If multiple replies are returned, the last reply is returned. |