The RCPT command is used to specify the recipient of an email. It is executed by using the rcpt command.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_SMTP.RCPT (
c IN OUT NOCOPY connection,
recipient IN VARCHAR2,
parameters IN VARCHAR2 DEFAULT NULL)
RETURN reply;
UTL_SMTP.RCPT (
c IN OUT NOCOPY connection,
recipient IN VARCHAR2,
parameters IN VARCHAR2 DEFAULT NULL);
Parameters
| Parameter | Description |
|---|---|
| c | The SMTP connection. |
| recipient | The recipient's email address. |
| parameters | The format of the SMTP protocol, as defined in RFC1869. It must follow the "XXX=XXX (XXX=XXX ....)" format. |
Return value
| Return value | Description |
|---|---|
| reply | The response to the command. If there are multiple responses, the last one is returned. |
Considerations
- Each call to
RCPTspecifies a single recipient email address. You can callRCPTmultiple times to specify multiple recipients. - You must call
mailbefore callingRCPT. - The expected return value is a response starting with
250or251, indicating that the SMTP server has successfully responded and accepted the specified recipient address.