Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   

 

  Oracle Database Tips by Donald Burleson

APEX's HTMLDB_MAIL package

The ability to send email from APEX is provided by the HTMLDB_MAIL package.  This package uses the UTL_SMTP package in Oracle.

send(
        p_to in varchar2,
        p_from in varchar2,
        p_body in [ varchar2 | clob ],
        p_body_html in [ varchar2 | clob ] default null,
        p_subj in varchar2 default null,
        p_cc in varchar2 default null,
        p_bcc in varchar2 default
null );

The send procedure is used to send email.  The two columns, p_body and p_body_html will accept either a data type of varchar2 or clob.  However, they must match each other.  If a varchar2 is used in one, the other must be NULL or a varchar2.  The same holds true for a clob.   They need to match or be NULL.

Example:

declare
   s_pager easy_person.pager%type;
begin
   select pager
   into   s_pager
   from   easy_person
   where  id = :P1080_ID;

   htmldb_mail.send(
      p_to => s_pager,
      p_from => 'easyhtmldb@rampant.cc',
      p_body => :P1080_TEXTMSG,      p_subj => 'Text
 message from HTML DB' );
   htmldb_mail.push_queue( 'localhost', 25 );
end;

htmldb_mail.push_queue(
         p_smtp_hostname in varchar2 default,
         p_smtp_portno in number default );

When using the htmldb_mail.send procedure to send emails, a mail queue is used.  Mail is sent from the queue at ten minute intervals.  This procedure can be used to force the mail in the queue to be sent immediately.  An example of that is shown in the example code for the htmldb_mail.send procedure.


The above book excerpt is from:

Easy HTML-DB Oracle Application Express

Create Dynamic Web Pages with OAE

ISBN 0-9761573-1-4   

Michael Cunningham & Kent Crotty

http://www.rampant-books.com/book_2005_2_html_db.htm

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.