Check the library dependencies to make sure all the necessary jars are in $ANT_HOME/lib. It sounds like that is the issue.
http://ant.apache.org/manual/install.html#librarydependencies -Rob Anderson > -----Original Message----- > From: eagerbeaver [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 12, 2006 8:48 AM > To: user@ant.apache.org > Subject: Mail task failure > > > The <mail> task in my nightly build script keeps failing with > the error "Failed to initialise MIME mail: > javax.mail.Address". This only started happening when I > started using Ant 1.6.5. Email still works when I revert back > to using Ant 1.6.2. > The JAF 1.1 and Javamail 1.4 jars are in ANT_HOME/lib. So why > do I get this error and only with Ant v1.6.5? What has changed? > > Here is the task in question: > > <mail mailhost="${mailhost}" mailport="${mailport}" > subject="${buildType}.${buildId} report" > tolist="${emailAll}"> <from address="${emailDes}"/> <message> > Please find attached ZIP containing the full console output > and the results of the unit tests. </message> <fileset > dir="${htmlResultDir}"> <include name="${resultsReportFile}" > /> </fileset> </mail> > -- > View this message in context: > http://www.nabble.com/Mail-task-failure-tf1931716.html#a5291385 > Sent from the Ant - Users forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]