Simple Example of Sending Attachments Using UTL_SMTP
Last updated on JULY 26, 2017
Applies to:PL/SQL - Version 10.1.0.2 and later
Information in this document applies to any platform.
*** Checked for relevance on 25th Jul 2017 ***
How to send an E-Mail with attachment using the PL/SQL package UTL_SMTP. The sample code uses the DBMS_LOB package to open and read the given file and encodes the attachment using UTL_ENCODE package to base64 format. This method will work with most types of file, but you will need to modify the mime type as noted in the code comments.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms