How to Send E-mail With Body Greater Than 32k Using the UTL_SMTP Package? (Doc ID 956582.1)

Last updated on JULY 07, 2017

Applies to:

PL/SQL - Version 9.2.0.8 and later
Information in this document applies to any platform.

***Checked for relevance on 07-Jul-2017***


Goal

How to Send E-mail With Body Greater Than 32k Using the UTL_SMTP Package?

When sending an email with a body greater than 32k, you need to pass the body as clob variable and then convert the data to small units of VARCHAR2 and pass it to UTL_SMTP.WRITE_DATA(objConnection,<>) as demonstrated in the sample code below.

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms