全部博文(47)
分类:
2009-11-11 14:42:26
Sending email from the database with the Utl_Smtp package |
The Utl_Smtp package provides all the primitives required to send email (with character and/or binaray attachments) by making calls from database PL/SQL. The Utl_Smtp primitives are relatively low level, and even a simple task like sending a plain text email with no attachments requires a number of calls. The package maildemo in provides a wrapper around Utl_Smtp.
Note: it uses the Utl_Encode package which is new in Oracle9i. An alternative version of maildemo for Oracle8i is avaiable in This uses an explicit implementation of encoding available in . The maildemo package presents a higher level API for just such simple tasks making it easy to...
The anonymous blocks in and in for Oracle8i illustrate the use of the maildemo API.
|