昨天在做邮件的时候想做个回执功能,就是在第一次查看邮件时弹出一个是否给对方发送回执的对话框,并自动发送的功能。
在网上找了好久,基本都说是“email.addHeader("Disposition-Notification-To"”就可以了。
但我已经添加,却始终没有效果,我生成的eml格式如下:
Return-Path: <[email protected]>
Message-ID: <21506279.531261099670531.JavaMail.Administrator@server>
MIME-Version: 1.0
X-UserIsAuth: true
Delivered-To: [email protected]
Received: from LI-13BDE4E12C90 ([192.168.0.64])
by server (JAMES SMTP Server 2.3.1) with SMTP ID 269
for <[email protected]>;
Fri, 18 Dec 2009 09:27:50 +0800 (CST)
Date: Fri, 18 Dec 2009 09:26:02 +0800 (CST)
From: aaa <[email protected]>
To: bbb <[email protected]>
Subject: =?utf-8?B?5rWL6K+V5Zue5omn5Li76aKY?=
Content-Type: multipart/alternative;
boundary="----=_Part_5_1679831.1261099562125"
returnceipt: 1
Disposition-Notification-To: [email protected]
X-Priority: 3 ------=_Part_5_1679831.1261099562125
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64 PERJVj7mtYvor5Xlm57miaflhoXlrrk8L0RJVj4=
------=_Part_5_1679831.1261099562125-- 回执功能还需要配置JAMES吗?或者是必须自己手动实现页面弹出对话框和自动回执的功能呢?
很急,明白的朋友帮帮忙啊,先谢谢大家了!
结贴后
http://topic.csdn.net/u/20091218/09/a3be72b0-1d32-4eef-9979-c797454e4279.html?seed=1389255451&r=62009858#r_62009858 的分数一并奉送!
在网上找了好久,基本都说是“email.addHeader("Disposition-Notification-To"”就可以了。
但我已经添加,却始终没有效果,我生成的eml格式如下:
Return-Path: <[email protected]>
Message-ID: <21506279.531261099670531.JavaMail.Administrator@server>
MIME-Version: 1.0
X-UserIsAuth: true
Delivered-To: [email protected]
Received: from LI-13BDE4E12C90 ([192.168.0.64])
by server (JAMES SMTP Server 2.3.1) with SMTP ID 269
for <[email protected]>;
Fri, 18 Dec 2009 09:27:50 +0800 (CST)
Date: Fri, 18 Dec 2009 09:26:02 +0800 (CST)
From: aaa <[email protected]>
To: bbb <[email protected]>
Subject: =?utf-8?B?5rWL6K+V5Zue5omn5Li76aKY?=
Content-Type: multipart/alternative;
boundary="----=_Part_5_1679831.1261099562125"
returnceipt: 1
Disposition-Notification-To: [email protected]
X-Priority: 3 ------=_Part_5_1679831.1261099562125
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64 PERJVj7mtYvor5Xlm57miaflhoXlrrk8L0RJVj4=
------=_Part_5_1679831.1261099562125-- 回执功能还需要配置JAMES吗?或者是必须自己手动实现页面弹出对话框和自动回执的功能呢?
很急,明白的朋友帮帮忙啊,先谢谢大家了!
结贴后
http://topic.csdn.net/u/20091218/09/a3be72b0-1d32-4eef-9979-c797454e4279.html?seed=1389255451&r=62009858#r_62009858 的分数一并奉送!
解决方案 »
- 求CMS(网站内容管理)的电子书或者相关实现教程。
- Hibernate修改操作
- java.lang.ClassNotFoundException: org.apache.log4j.Category
- java设计模式的核心是什么,跪求高手赐一句精辟的总结。
- 为什么我创建的JMS服务,别的计算机无法连接?
- tomcat活动session释放问题
- 求救AOP框架的问题!
- 做了一个小项目,服务器启动后,打开页面显示错误,请高手指教!!!!
- java连接oracle问题
- 急,我的AXIS有这种错误,搞了好久了,哪位能来帮忙!
- 在struts中如何用标签表示一个变量是否等于‘0’或‘3’字符型的)
- 急:如何查处cpu使用率高的sql语句?
To: bbb <[email protected]>自动回复能否接收到邮件呢
也许对你有帮助
感谢wufei006007008
(菜鸟一只,一只菜鸟)
结贴,散分~~~