The WRITE_RAW_DATA procedure is used to send raw data as the content of an email. It can be called multiple times to append data to the email.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_SMTP.WRITE_RAW_DATA (
c IN OUT NOCOPY connection
data IN RAW);
Parameters
Parameter |
Description |
|---|---|
| c | The SMTP connection. |
| data | A part of the message text to be sent. It contains headers and is in [RFC822] format. |
Considerations
OPEN_DATA, WRITE_DATA, WRITE_RAW_DATA, and CLOSE_DATA must be called in sequence. OPEN_DATA sends the data command to indicate the start of sending email content. After that, WRITE_DATA and WRITE_RAW_DATA can be called multiple times to send the email body. Finally, CLOSE_DATA sends the terminator to end the sending.
