WRITE_RAW_DATA is used to send raw data as email content. It can be called multiple times to append data to the email.
Applicability
This content applies only to the Oracle-compatible mode of OceanBase Database.
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 the headers and is in the [RFC822] format. |
Considerations
OPEN_DATA, WRITE_DATA, WRITE_RAW_DATA, and CLOSE_DATA must be called in strict sequence. OPEN_DATA sends the data command to indicate the start of email content transmission. Multiple calls to WRITE_DATA and WRITE_RAW_DATA can then be made to send the email body, and finally, CLOSE_DATA sends the terminator to end the transmission.