| Mail failing in build.xml file | Mail failing in build.xml file 2007-06-12 - By Saurabh Dave
Download the Activation.jar and mail.jar and copy in ant Lib folder...
-----Original Message----- From: David Weintraub [mailto:qazwart@(protected)] Sent: Tuesday, June 12, 2007 3:26 AM To: Ant Users List Subject: Mail failing in build.xml file
I have a very straight forward build.xml file:
<project name="test" default="test" basedir="."> <target name="test"> <mail from="dweintraub@(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="dweintraub@(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.
-- David Weintraub qazwart@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |