如何通过 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+.
相关文章