ant,mail的问题?

ZQGet 2005-11-23 11:50:38
Buildfile: build.xml

mail:
[mail] Sending email: null
[mail] Failed to send email

BUILD FAILED
X:\Pinball\PINBAL~1\SAMSUN~1\build.xml:6: Problem while sending mime mail:

Total time: 1 second

我使用ant来发送邮件,缺出现了上面的错误,请问是怎么回事?
我的build.xml文件:

<project name="ant_test" basedir="." default="mail">
<target name="mail" description="test mail">
<mail mailhost="smtp.163.com"
mailport="25"
user="zqget123"
password="123456">
<from address="zqget123@163.com"/>
<to address="zhang.qiang2@gameloft.com"/>
<message>this is a test mail!</message>
</mail>
</target>
</project>

...全文
277 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Mybeautiful 2006-06-01
  • 打赏
  • 举报
回复
把mail.jar;activation.jar放入Ant home/lib中.

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧