Custom Search

Thursday, October 2, 2008

I'm trying to get a coverage report mailed to the team as shown in your example, but I keep getting "[mail] Failed to send email". How do I fix this?

The Ant task depends on external libraries that are not included in the Ant distribution. You need to install the following jars in ANT_HOME/lib, both freely available from Sun:
1. mail.jar - from the JavaMail API (http://java.sun.com/products/javamail/)
2. activation.jar - from the JavaBeans Activation Framework (http://java.sun.com/products/javabeans/jaf/index.jsp)
You should also check the details of your local SMTP server with your SysAdmin. It may help to specify these details directly to the task:

No comments: