O'Reilly logo

Oracle Database 11g: Building Oracle XML DB Applications by Jinyu Wang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending Emails using Oracle XML DB

In this section, we will enable sending customized emails to selected contacts from the APEX application.

Creating an Email Template

The email content is defined via an email template in XML. The following XML document is an example email template (xmlbook_ann_tpl.xml):

<email_template>

     <attachment>

          <imageContent baseurl=“http://localhost:8081/public/chp17/event/ xmlbook_ann”>

               <image id=“001”>book_cover.jpg</image>

               <image id=“002”>learnmore.gif</image>

          </imageContent>

          <attachedContent>

               <file>sample_chapter.pdf</file>

          </attachedContent>

     </attachment>

     <xsl_content>

     <xsl:stylesheet version=“1.0” xmlns:xsl=“http://www.w3.org/1999/XSL/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required