如何通过 pl/sql 发送电子邮件 [英] how send email by Pl/sql

查看:58
本文介绍了如何通过 pl/sql 发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我可以通过 Oracle 9i 发送电子邮件吗?如果Oracle 9i 无法发送邮件...

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

附言我的数据库基于 9i,我的表单生成器是版本 6.

解决方案

在 asktom 上查看有关发送电子邮件的线程(从 8i+ 版本开始):"发送电子邮件!--Oracle 8i 特定响应"

在版本 9i 中,您有几个选项:

  • 使用 PL/SQL 和 UTL_SMTP
  • 使用 java 程序

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

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

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.

解决方案

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

这篇关于如何通过 pl/sql 发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆