send an mail using ANT

Posted by shilpi.agarwal3373 on 02-Jun-2016 04:51

Hi team,

I want to send an mail through ANT. For this, I have copied mail.jar and activation.jar in ANT-Installation-Dir/lib folder and also basedir/lib folder. I have downloaded (which contains mail.jar), (which contains activation.jar), and copying the two jar files into the lib directory of Apache Ant. 

But I am  getting following error.

Failed to send email: javax.mail.internet.MimeMessage

C:\shilpi\POC\ablunit\build.xml:57: java.lang.ClassNotFoundException: javax.mail.internet.MimeMessage

below is my ANT mail task.

<target name="all" description="send email using ant" >
<mail mailhost="" mailport="465" user ="" password=test" ssl="true" subject="Test build">
<from address=""/>
<to address=""/>
<message>The test has completed</message>

Please suggest if I am missing something.

All Replies

Posted by shilpi.agarwal3373 on 03-Jun-2016 00:42

Please help me out for above problem

Posted by Mike Fechner on 03-Jun-2016 00:48

Since the issues is not OpenEdge related at all, google may be your friend. This was my first hit on your error message:

Posted by shilpi.agarwal3373 on 03-Jun-2016 01:27

Ok Mike. Really appreciate.

This thread is closed