Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\advnc_email.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Sending Email from an Application</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:31Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Sending Email from an Application" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-01" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface.htm" title="Home" type="text/html" /> <link rel="up" href="advnc.htm" title="Advanced Programming Techni..." type="text/html" /> <link rel="up" href="aadm_email.htm" title="Sending Email from an Appli..." type="text/html" /> <link rel="up" href="advnc_email.htm" title="Sending Email from an Appli..." type="text/html" /> <link rel="prev" href="aadm_config_email.htm" title="Previous" type="text/html" /> <link rel="next" href="advnc_collections.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="Home">Home</a> > <a href="advnc.htm" title="Advanced Programming Techni...">Advanced Programming Techni...</a> > <a href="aadm_email.htm" title="Sending Email from an Appli...">Sending Email from an Appli...</a> > Sending Email from an Appli...</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="aadm_config_email.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="advnc_collections.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDIADAB" name="CHDIADAB"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1><a name="HTMDB25856" id="HTMDB25856"></a>Sending Email from an <a id="sthref2183" name="sthref2183"></a><a id="sthref2184" name="sthref2184"></a>Application</h1> <p>You can send an email from an Application Builder application by calling the PL/SQL package <code>APEX_MAIL</code>. This package is built on top of the Oracle supplied <code>UTL_SMTP</code> package. Because of this dependence, in order to use <code>APEX_MAIL</code>, the <code>UTL_SMTP</code> package must be installed and functioning.</p> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> <a href="http://www.oracle.com/pls/db112/lookup?id=ARPLS074"><span class="italic">Oracle Database PL/SQL Packages and Types Reference</span></a> for more information about the UTL_SMTP package and "APEX_MAIL" in <a href="http://www.oracle.com/pls/db112/lookup?id=AEAPI341"><span class="italic">Oracle Application Express API Reference</span></a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> <p><code>APEX_MAIL</code> contains three procedures for sending email:</p> <ul> <li> <p>Use <code>APEX_MAIL.SEND</code> to manually send an outbound email mess age from your application</p> </li> <li> <p>Use <code>APEX_MAIL.ADD_ATTACHMENT</code> to send an outbound email message from an application as an attachment. APEX_MAIL.ADD_ATTACHMENT</p> </li> <li> <p>Use <code>APEX_MAIL.PUSH_QUEUE</code> to deliver mail messages stored in <code>APEX_MAIL_QUEUE</code></p> </li> </ul> <p>Oracle Application Express stores unsent email messages in a table named <code>APEX_MAIL_QUEUE</code>. You can deliver mail messages stored in this queue to the specified SMTP gateway by calling the procedure <code>APEX_MAIL.PUSH_QUEUE</code>.</p> <p>Oracle Application Express logs successfully submitted messages in the table <code>APEX_MAIL_LOG</code> with the timestamp reflecting your server's local time.</p> <p>The following UNIX/LINUX example demonstrates the use of the <code>APEX_MAIL.PUSH_QUEUE</code> procedure using a shell script.</p> <pre xml:space="preserve" class="oac_no_warn"> SQLPLUS / <<EOF APEX_MAIL.PUSH_QUEUE; DISCONNECT EXIT EOF </pre> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> "APEX_MAIL" in <a href="http://www.oracle.com/pls/db112/lookup?id=AEAPI341"><span class="italic">Oracle Application Express API Reference</span></a> and "Managing Mail" in <a href="AEADM/adm_mg_service_set.htm"><span class="italic">Oracle Application Express Administration Guide</span></a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="sect2" --> <!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="aadm_config_email.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="advnc_collections.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de