Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query output in a tabular format in Email body using DBMS_CLOUD_NOTIFICATION.SEND_DATA

Hi Team,

I am using DBMS_CLOUD_NOTIFICATION.SEND_DATA package to send email notification. The code is similar to the following code.

BEGIN
DBMS_CLOUD_NOTIFICATION.SEND_DATA(
provider => 'email',
credential_name => 'EMAIL_CRED',
query => 'SELECT * from emp',
params => json_object('recipient' value 'santosh@oracle.com',
'to_cc' value 'santosh@oracle.com',
'to_bcc' value 'santosh@oracle.com',
'subject' value 'Test subject',
'type' value 'txt',
'title' value 'mytitle',
'message' value 'This is the message',
'smtp_host' value 'smtp.email.example.com',
'sender' value 'noreply@oracle.com' )
);
END;
/

The email is triggering as expected but I want the query output to be displayed in a table format instead of an attachment.

Any suggestions please…

Comments
Post Details
Added on Aug 2 2023
0 comments
247 views