The UTL_MAIL
package is a utility for managing email which includes commonly used email features, such as attachments, CC, and BCC.
This chapter contains the following topics:
-
-
Security Model
-
Operational Notes
-
Rules and Limits
-
Using UTL_MAIL
Security Model
UTL_MAIL
is not installed by default because of the SMTP_OUT_SERVER
configuration requirement and the security exposure this involves. In installing UTL_MAIL
, you should take steps to prevent the port defined by SMTP_OUT_SERVER
being swamped by data transmissions.
This package is now an invoker's rights package and the invoking user will need the connect privilege granted in the access control list assigned to the remote network host to which he wants to connect.
Note:
For more information, see Managing Fine-grained Access to External Network Services in Oracle Database Security GuideOperational Notes
You must both install UTL_MAIL
and define the SMTP_OUT_SERVER.
-
To install UTL_MAIL:
sqlplus sys/<pwd> SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql SQL> @$ORACLE_HOME/rdbms/admin/prvtmail.plb
-
You define the
SMTP_OUT_SERVER
parameter in theinit
.ora
rdbms
initialization file. However, ifSMTP_OUT_SERVER
is not defined, this invokes a default ofDB_DOMAIN
which is guaranteed to be defined to perform appropriately.
Rules and Limits
Use UTL_MAIL
only within the context of the ASCII (American Standard Code for Information Interchange) and EBCDIC (Extended Binary-Coded Decimal Interchange Code) codes.