The WRITE_RAW_DATA procedure sends the raw data of an email message. You can call this procedure multiple times to append data to the email message.
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 | The part of the message text to be sent. It contains headers and is in [RFC822] format. |
Considerations
You must call OPEN_DATA, WRITE_DATA, WRITE_RAW_DATA, and CLOSE_DATA in sequence. open_data sends the data command to declare the start of sending the email content. After that, you can call write_data and write_raw_data multiple times to send the email body. Finally, close_data sends the terminator to end the sending.