Fri Oct 24, 2008 5:27 pm
<project name="springboardv1" basedir=".">
<property name="src.dir" value="WEB-INF/src" />
<property name="classes.dir" value="WEB-INF/classes" />
<property name="lib.dir" value="WEB-INF/lib" />
<path id="libraries">
<fileset dir="${lib.dir}" includes="*.jar" />
</path>
<target name="sendMail">
<mail subject="Ant Mail" encoding="auto" ssl="false"
mailhost="mySMTP-Host" mailport="my.port" user="my.user"
password="myPwd" messagemimetype="text/plain">
<from address="from.addr"/>
<to address="to.addr"/>
<message>
this is a test mail.
</message>
</mail>
</target>
</project>
Here,
i given all the valid data, which is working fine with Java Mail API.
Error Msg:
sendMail:
[mail] Failed to initialise MIME mail:
javax/mail/MessagingException
BUILD SUCCESSFUL
Total time: 422 milliseconds
I added all the jar files which are needed.
i tried to set some classpath, to <mail> element. but this element wont
have any path or classpath related attributes.
how to resolve this.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.