Hi,
I recently have a problem using the antbuilder mail task in groovy. It always throws the following exception:
[mail] Sending email: null
[mail] Failed to send email: 0
Caught: : java.lang.ArrayIndexOutOfBoundsException: 0
I think the problem just occurred with the release of the new 1.7.2 version, but I cannot ensure it.
Here is the snippet:
ant = new AntBuilder()
ant.mail(mailhost:'localhost',mailport:'25',subject:'Hello Ant World',messagemimetype:'text/html') {
from(address:'[email protected]')
to(address:'[email protected]')
message('Hello ant world!')
}
Any idea how to get this working? Thanks,Ingo