Please check for activate.jar, mail.jar files in your ANT_HOME/lib directory.
Knuplesch, Jürgen wrote: > > When I run the mail task I often get this Errormessage: > > mailtest: > [mail] Failed to initialise MIME mail: javax/mail/MessagingException > [mail] Sending email: Mailtest > [mail] Failed to send email > > BUILD FAILED > C:\DopeBuildBase\Build\DopeBuildServer\dopebuild_ant.xml:2973: IO error > sending mail > > But when I run the Ant-File with Eclipse it works and when I send Mails in > my Buildprocess it works from one server but not from the other. It never > worked from the commandline. > > Where do I have to search? > Is there a reason or a solution? > Is there a special jar that is sometimes missing? > > This is my Testmailfile that works under Eclipse, but not as Batch on a > different machine: > > <project name="Testmail" default="mailtest"> > > > <property name="MailLogger.mailhost" value="XXXXXXX"/> > <property name="MailLogger.from" value="Mailtest"/> > <property name="MailLogger.failure.subject" value="Mailbuild"/> > <property name="MailLogger.success.subject" value="Mailbuild success"/> > <property name="MailLogger.failure.to" > value="[EMAIL PROTECTED]"/> > <property name="MailLogger.success.to" > value="[EMAIL PROTECTED]"/> > > > <target name="mailtest" description="Hallo"> > > <mail mailhost="XXXXXXX" > subject="Mailtest" > tolist="[EMAIL PROTECTED]" > message="Alles klar" > from="[EMAIL PROTECTED]"> > </mail> > </target> > > </project> > > > -- > Jürgen Knuplesch www.icongmbh.de > icon Systemhaus GmbH Tel. +49 711 806098-275 > Sophienstraße 40 > D-70178 Stuttgart Fax. +49 711 806098-299 > > Geschäftsführer: Uwe Seltmann > HRB Stuttgart 17655 > USt-IdNr.: DE 811944121 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Mail-Task-tp14755932p14757369.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]