Question: I want to be able to save a copy of
an e-mail that I am generating in a PL/SQL stored procedure.
I want to know how to save the e-mail as a plain OS e-mail and
how to save an e-mail inside an Oracle table.
Are there standard packages for saving Oracle e-mails?
Answer: To start, see this procedure for
sending e-mail via PL/SQL from Oracle.
There are many ways to save a copy of an e-mail that is sent via
utl_mail:
- Set a "cc" copy to the IP address of the Oracle database
server. The
e-mail will be saved in the standard OS e-mail directory.
- Create a table with e CLOB column for the text and
write PL/SQL to save the sender, recipients(s) and text and
details of the e-mail. You can also save the e-mail text to a
flat file using the
dbms_lob.write procedure.
- In ApEx, you can also use
wwv_flow_mail to save an e-mail copy.
- You can send and save e-mails with the
html-email and utl_smtp packages.
I'm sure there are many other ways of saving copies of outgoing
e-mail from Oracle; it depends on your needs . . . .
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
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.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|