how send email by Pl/sql

痞子三分冷 提交于 2019-11-29 15:47:31
Vincent Malgrat

check this thread on asktom about sending emails (from version 8i+): "Sending e-mail! -- Oracle 8i specific response"

In version 9i, you have several options:

  • using PL/SQL and the UTL_SMTP package
  • using a java procedure

The UTL_SMTP option would be the easiest to setup but some features (such as attaching files) may require a bit more work and some knowledge of SMTP. See MikeyByCrikey's answer for a good example.

If you plan to upgrade, APEX has some mail utility (APEX_MAIL) available for version 10g+.

Oracle provides the UTL_SMTP package which allows you to send mail. It requires access to a mail server of some description.

This package is a little complicated to use. There is a supplied demo package that is available on the Oracle website which I am using successfully to send mail.

Check this page from Burleson.

http://www.dba-oracle.com/t_email_mailing_messages_plsql.htm

Oracle has, since 8i, the system package utl_smtp for this, and since 10g, the utl_mail that expands this functionality.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!