Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6030747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:04:58+00:00 2026-05-23T05:04:58+00:00

I have an Oracle database and need to send out email notificaitons based on

  • 0

I have an Oracle database and need to send out email notificaitons based on events that happen in my Dot Net web Application. The email notifications are in HTML format. I have different templates that are used depending on the email notification that is to be generated. Each is connected to a Sproc. So when the event is called I pass an Id to handler and it calls a sproc. I then get the email template which is in HTML format and has Tags that are to be replaced with the fields from the sproc. I then search and replace any tags in the template with the corresponding field from the record set. The email recipeint is put in and the email sent as HTML format. This all works fine.

However I now have a requirement to show multiple rows in a table on an email notification. So for example, the details of books over from a library. I could get all the rows and build the HTML table rows on the fly in dot net by iterating over the record set and generating a new row for each record set but his would break my common approach of tag replacement.
So I would like to know can I build these multiple rows in PL SQL and return it as one field where I can replace a tag in my html email template with the contents of a field from a record set. This field would contain the HTML version of all the required records… ready to ready as a table. So I would have a tag in my template called OVerDueBooks and replace that tag with the Field Over_Due_Books from my record set. This field would have all the over due book records in html format so I only have to replace the tag with the contents.

thanks Mick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:04:59+00:00Added an answer on May 23, 2026 at 5:04 am

    Thanks Gary,

    I got this little gem from Sliqhtwv on EE and its works a treat. Thanks for your help.. much apprieciated.

    From Sliqhtwv:

    drop table tab1 purge;
    create table tab1(col1 char(1), col2 char(1), col3 char(1));
    
    insert into tab1 values('a','1','A');
    insert into tab1 values('b','2','B');
    insert into tab1 values('c','2','C');
    commit;
    
    select xmlagg(xmlelement("TR",
        xmlforest(col1 as "TD",col2 as "TD",col3 as "TD"))).getclobval()
    from tab1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have four DB tables in an Oracle database that need to be rewritten/refreshed
I've events table in Oracle database. I want to send email notification whenever a
Here's the situation: we have an Oracle database we need to connect to to
I have an Oracle database backup file (.dmp) that was created with expdp .
We have an Oracle database here that's been around for about 10 years. It's
I have 3 Oracle database instances with the same data and scheme that I
I have a table in an Oracle database that contains actions performed by users
We have a shell script that perform a physical backup of our oracle database
I have an Oracle database column, say col1, that has the following values: Col1
I have an Oracle database that runs a PL/SQl job once every week to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.