如何通过PL/SQL发送电子邮件

发布于 2024-10-03 21:24:24 字数 389 浏览 0 评论 0 原文

我想使用*oracle 9i - Enterprise Edition release 9.2.0.8.0 发送电子邮件,*我知道有一个适用于oracle 10 的软件包,但是您能给我关于oracle 9i 的建议吗?有包吗?

我可以通过Oracle 9i 发送电子邮件吗? 如果无法通过Oracle 9i...发送邮件,有没有办法使用接口程序(例如java程序)并通过该程序发送电子邮件,

我的意思是我只是向该程序发送参数,然后使用该程序发送电子邮件。 我可以运行写入批处理文件,我们可以运行 Outlook 并通过 Oracle 9i 发送电子邮件吗?

PS 我的数据库基于 9i,我的表单生成器是版本 6。

I want send email by using *oracle 9i - Enterprise edition release 9.2.0.8.0 ,*I know there is one package for oracle 10,but would you advice me about it for oracle 9i? Is there any package ?

Can I sent email by Oracle 9i?
Is there any way using an interface program such as a java program and send email via that one, if it is impossible to send mail by Oracle 9i...

I mean I just send parameter to that program and send email by using that program.
I can run write batch file,can we run Outlook and send email via that one by Oracle 9i?

P.s. my database is base on 9i and my form builder is version 6.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

迷迭香的记忆 2024-10-10 21:24:24

检查 Asktom 上有关发送电子邮件的帖子(从版本 8i+ 开始):“正在发送电子邮件! -- Oracle 8i 特定响应"

在版本 9i 中,您有多种选择:

  • 使用 PL/SQL 和 UTL_SMTP
  • 使用 java 过程的

包UTL_SMTP 选项是最容易设置的,但有些功能(例如附加文件)可能需要更多的工作和一些 SMTP 知识。请参阅 MikeyByCrikey 的答案以获得一个很好的示例。

如果您计划升级,APEX 有一些邮件实用程序 (APEX_MAIL) 适用于版本 10g+。

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+.

无名指的心愿 2024-10-10 21:24:24

Oracle 提供了 UTL_SMTP 包,它允许您发送邮件。它需要访问某种描述的邮件服务器。

这个包使用起来有点复杂。有一个提供的演示包,可以在我正在成功使用 Oracle 网站发送邮件。

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.

温柔少女心 2024-10-10 21:24:24

查看伯勒森的此页面。

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

Oracle 已从8i 中,系统包 utl_smtp 用于此功能,而自 10g 起,utl_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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文