Chinaunix首页 | 论坛 | 博客
  • 博客访问: 376600
  • 博文数量: 85
  • 博客积分: 1504
  • 博客等级: 上尉
  • 技术积分: 928
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-04 12:20
文章分类

全部博文(85)

文章存档

2011年(66)

2010年(19)

分类: Java

2011-05-11 15:04:08

Since the Ant task reported:

Failed to initialise MIME mail: javax/mail/MessagingException
 

I decided to download the mail.jar and activation.jar from Sun's website and copy those two jar files in the lib directory of Apache Ant in order to make sending attachments using MIME work and bypassing the default mail handling of the Mail task in Apache Ant.

And indeed, after downloading javamail-1_3_3_01.zip (which contains mail.jar), jaf-1_0_2-upd2.zip (which contains activation.jar), and copying the two jar files into the lib directory of Apache Ant, the Mail task no longer complained, and Mozilla Thunderbird was able to understand that the new mail it received had indeed attachments.

Apache Ant and MIME mail related

  • - contains mail.jar
  • - contains activation.jar
  • - Apache Ant manual
阅读(1439) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~