My Oracle Support Banner

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

Last updated on JANUARY 15, 2018

Applies to:

PL/SQL - Version 9.2.0.8 and later
Information in this document applies to any platform.
***Checked for relevance on 15-Jan-2018***


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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.