Total members 11890 |It is currently Wed Apr 24, 2024 4:30 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





<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.




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : how to send mail with Ant
 send mail using php     -  
 send mail cc and bcc in php     -  
 How to send conformation e-mail through JSP     -  
 send mail to Multiple recipients     -  
 validate e-mail in php     -  
 validate mail in jsp     -  
 mail system in java     -  
 php variables in mail function     -  
 mail function problem     -  
 Help Sending e-mail from VB.Net application     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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