David,
I duplicated your trial and got exactly the same error. Then I dropped
mail.jar and activation.jar into my ANT_HOME/lib directory and
everything worked perfectly. I hope that is helpful.
--Wayne
David Weintraub wrote:
I have a very straight forward build.xml file:
<project name="test" default="test" basedir=".">
<target name="test">
<mail
from="[EMAIL PROTECTED]"
subject="Test Email"
mailhost="192.168.128.100"
user="dweintraub"
password="xxxxxxxx"
message="This is a test email"
failonerror="true">
<to name="David Weintraub"
address="[EMAIL PROTECTED]"/>
</mail>
</target>
</project>
When I attempt to execute it, I get the following error message:
test:
[mail] Failed to initialise MIME mail: javax/mail/MessagingException
BUILD SUCCESSFUL
Which is strange because I set "failonerror" to "true".
Any ideas? I am currently sending mail via CruiseControl and that
works (and where I got the parameters from) so I know that it is
possible to send email from this machine.
If it's any help, here's the message from CruiseControl:
Failed to initialise MIME mail:
org.apache.tools.ant.taskdefs.email.MimeMailer
I am running Ant 1.7
--
David Weintraub
[EMAIL PROTECTED]
---------------------------------------------------------------------
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]