Hi,
sorry about that, there is a bug in 1.8.0 for plain email. mime email
might work but requires mail.jar and activation.jar on the classpath.
If you want to use plain email, you could try to build ant from source.
Regards,
Antoine
ravensock wrote:
We've upgraded from ANT 1.6.5 to 1.8.0. But sending mails does not work as
we've been used to it.
Trying to send an email from the my daily build in case there was some error
leads to "Failed to send email". No matter what kind of encoding I use.
See below my debug output to the mini project "sendfailmail".
((Using ANT 1.6.5 this works fine - there I have "[mail] Using UU mail". And
the mail will be sent.))
Can anyone let me know whether this is a bug ??
Can we somehow use some other ant-task to still use mailing?
If this is a bug, when can we approx. take this in account?
Thanks a lot for your help
Sigrid
--------------------------------
encoding defaults to "mime"
[mail] Failed to send email: javax.mail.internet.MimeMessage
encoding = "uu"
[mail] Failed to send email: Failed to initialise encoding: uu
encoding = "plain"
[mail] Failed to send email: socket closed
BUILD FAILED
D:\Ant\apache-ant-1.8.0\testMail.xml:5: IO error sending mail
at
org.apache.tools.ant.taskdefs.email.PlainMailer.send(PlainMailer.java:113)
at
org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:571)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
This is my test-project
<project name="sendfailmail">
<mail from="m...@address" mailhost="mailhost"
tolist="whoever"
subject="Build failed message">
<message>the build failed in unit xxx</message>
</mail>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]