楼主: space6212

[精华] [原创 申请精华]用oracle发送邮件(功能很全)

[复制链接]
论坛徽章:
13
2013年新春福章
日期:2013-04-08 17:42:48技术图书徽章
日期:2014-05-13 10:11:54马上有对象
日期:2014-02-18 16:44:08ITPUB社区12周年站庆徽章
日期:2013-10-17 13:56:392013年新春福章
日期:2013-06-05 15:29:212013年新春福章
日期:2013-06-05 15:29:212013年新春福章
日期:2013-06-05 15:29:212013年新春福章
日期:2013-05-27 10:23:002013年新春福章
日期:2013-05-27 10:23:002013年新春福章
日期:2013-05-27 10:23:00
181#
发表于 2013-3-27 13:39 | 只看该作者
收藏

使用道具 举报

回复
论坛徽章:
4
ITPUB十周年纪念徽章
日期:2011-11-01 16:26:292012新春纪念徽章
日期:2012-01-04 11:57:56茶鸡蛋
日期:2012-01-10 15:28:372013年新春福章
日期:2013-02-25 14:51:24
182#
发表于 2013-3-28 12:05 | 只看该作者
好,有用

使用道具 举报

回复
论坛徽章:
0
183#
发表于 2013-4-24 15:12

求职 : PB + Oracle开发
论坛徽章:
35
ITPUB社区12周年站庆徽章
日期:2013-08-08 10:26:54优秀写手
日期:2014-04-22 06:00:18马上加薪
日期:2014-03-05 14:17:54马上有车
日期:2014-03-05 11:29:32马上有车
日期:2014-03-03 15:37:34马上有房
日期:2014-02-22 13:05:372014年新春福章
日期:2014-02-22 12:44:362014年新春福章
日期:2014-02-18 16:49:31问答徽章
日期:2014-02-14 09:07:57现代
日期:2014-02-09 13:11:19
184#
发表于 2013-4-26 08:06 | 只看该作者
exec PROCSENDEMAIL('中文测试邮件','中文主题','w.li@yydg.com.cn','w.li@yydg.com.cn','dgmail.yydg.com.cn',25,0,'','','D:/export.txt','bit 7');

命令的第 1 行開始發生錯誤:
exec PROCSENDEMAIL('中文测试邮件','中文主题','w.li@yydg.com.cn','w.li@yydg.com.cn','dgmail.yydg.com.cn',25,0,'','','D:/export.txt','bit 7')
錯誤報告:
ORA-01031: 權限不足
ORA-06512: 在 "AA.PROCSENDEMAIL", line 360
ORA-06512: 在 line 1
01031. 00000 -  "insufficient privileges"
*Cause:    An attempt was made to change the current username or password
           without the appropriate privilege. This error also occurs if
           attempting to install a database without the necessary operating
           system privileges.
           When Trusted Oracle is configure in DBMS MAC, this error may occur
           if the user was granted the necessary privilege at a higher label
           than the current login.
*Action:   Ask the database administrator to perform the operation or grant
           the required privileges.
           For Trusted Oracle users getting this error although granted the
           the appropriate privilege at a higher label, ask the database
           administrator to regrant the privilege at the appropriate label.

为什么我设置附件就会出现如上错误?

而不设置附件,可以发送成功,但是收件日期是 1970/1/1上午8:00

使用道具 举报

回复
求职 : 数据库管理员
论坛徽章:
19
ITPUB 11周年纪念徽章
日期:2012-10-09 18:14:482016猴年福章
日期:2016-02-23 09:58:342016猴年福章
日期:2016-02-18 09:31:30金牛座
日期:2016-01-13 09:11:33ITPUB14周年纪念章
日期:2015-10-26 17:23:44巨蟹座
日期:2015-10-20 10:17:21马上有对象
日期:2014-02-18 16:44:082014年新春福章
日期:2014-02-18 16:44:08ITPUB社区12周年站庆徽章
日期:2013-10-17 13:56:59ITPUB社区12周年站庆徽章
日期:2013-10-08 17:44:42
185#
发表于 2013-4-26 12:23 | 只看该作者
这个发送邮件会不会有限制  发送内容的大小啊。

使用道具 举报

回复
论坛徽章:
4
ITPUB9周年纪念徽章
日期:2010-10-08 09:31:21ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262012新春纪念徽章
日期:2012-01-04 11:53:292013年新春福章
日期:2013-02-25 14:51:24
186#
发表于 2013-6-3 14:12 | 只看该作者
附件发不了,愁呀

使用道具 举报

回复
论坛徽章:
4
ITPUB9周年纪念徽章
日期:2010-10-08 09:31:21ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262012新春纪念徽章
日期:2012-01-04 11:53:292013年新春福章
日期:2013-02-25 14:51:24
187#
发表于 2013-6-3 14:34 | 只看该作者
space6212 发表于 2007-3-7 16:49
最好下载附件,论坛屏蔽了反斜线

版主,附件为什么发不出去呢.附件发出去都是空的.

使用道具 举报

回复
论坛徽章:
4
ITPUB9周年纪念徽章
日期:2010-10-08 09:31:21ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262012新春纪念徽章
日期:2012-01-04 11:53:292013年新春福章
日期:2013-02-25 14:51:24
188#
发表于 2013-6-3 15:13 | 只看该作者
原码中的发送附件的功能有问题.我进行修改后已经可以发送txt格式的文件了.但xls,doc形式的文件还不能发送.

使用道具 举报

回复
论坛徽章:
0
189#
发表于 2013-7-1 17:16 | 只看该作者
收藏,很好很强大。

使用道具 举报

回复
论坛徽章:
1
2013年新春福章
日期:2013-02-25 14:51:24
190#
发表于 2013-9-2 18:02 | 只看该作者
不错,很好使用,建议加精

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表