UTL_MAIL v11
The UTL_MAIL
package provides the capability to manage e-mail. Advanced Server supports the following procedures:
Function/Procedure | Return Type | Description |
---|---|---|
SEND(sender, recipients, cc, bcc, subject, message [, mime_type [, priority ]]) | n/a | Packages and sends an e-mail to an SMTP server. |
SEND_ATTACH_RAW(sender, recipients, cc, bcc, subject, message, mime_type, priority, attachment [, att_inline [, att_mime_type [, att_filename ]]]) | n/a | Same as the SEND procedure, but with BYTEA or large object attachments. |
SEND_ATTACH_VARCHAR2(sender, recipients, cc, bcc, subject, message, mime_type, priority, attachment [, att_inline [, att_mime_type [, att_filename ]]]) | n/a | Same as the SEND procedure, but with VARCHAR2 attachments. |
Note
An administrator must grant execute privileges to each user or group before they can use this package.
SEND
The SEND
procedure provides the capability to send an e-mail to an SMTP server.
Parameters
sender
E-mail address of the sender.
recipients
Comma-separated e-mail addresses of the recipients.
cc
Comma-separated e-mail addresses of copy recipients.
bcc
Comma-separated e-mail addresses of blind copy recipients.
subject
Subject line of the e-mail.
message
Body of the e-mail.
mime_type
Mime type of the message. The default is text/plain; charset=us-ascii
.
priority
Priority of the e-mail The default is 3.
Examples
The following anonymous block sends a simple e-mail message.
SEND_ATTACH_RAW
The SEND_ATTACH_RAW
procedure provides the capability to send an e-mail to an SMTP server with an attachment containing either BYTEA
data or a large object (identified by the large object's OID
). The call to SEND_ATTACH_RAW
can be written in two ways:
or
Parameters
sender
E-mail address of the sender.
recipients
Comma-separated e-mail addresses of the recipients.
cc
Comma-separated e-mail addresses of copy recipients.
bcc
Comma-separated e-mail addresses of blind copy recipients.
subject
Subject line of the e-mail.
message
Body of the e-mail.
mime_type
Mime type of the message. The default is text/plain; charset=us-ascii
.
priority
Priority of the e-mail. The default is 3
.
attachment
The attachment.
att_inline
If set to TRUE
, then the attachment is viewable inline, FALSE
otherwise. The default is TRUE
.
att_mime_type
Mime type of the attachment. The default is application/octet
.
att_filename
The file name containing the attachment. The default is NULL
.
SEND_ATTACH_VARCHAR2
The SEND_ATTACH_VARCHAR2
procedure provides the capability to send an e-mail to an SMTP server with a text attachment.
Parameters
sender
E-mail address of the sender.
recipients
Comma-separated e-mail addresses of the recipients.
cc
Comma-separated e-mail addresses of copy recipients.
bcc
Comma-separated e-mail addresses of blind copy recipients.
subject
Subject line of the e-mail.
message
Body of the e-mail.
mime_type
Mime type of the message. The default is text/plain; charset=us-ascii
.
priority
Priority of the e-mail The default is 3.
attachment
The VARCHAR2
attachment.
att_inline
If set to TRUE
, then the attachment is viewable inline, FALSE
otherwise. The default is TRUE
.
att_mime_type
Mime type of the attachment. The default is text/plain; charset=us-ascii
.
att_filename
The file name containing the attachment. The default is NULL
.
- On this page
- SEND
- SEND_ATTACH_RAW
- SEND_ATTACH_VARCHAR2