Re: ANT :use ant send mail in java code occur erro

2006-12-15 Thread Antoine Levy-Lambert
Do you have mail.jar and activation.jar under $ANT_HOME/lib ? Regards, Antoine On Dec 10, 2006, at 10:08 PM, heliquan wrote: Hi, I use ant in java code to send e-mail,but some error I can't find the solution. In java code ,I had new a "org.apache.tools.ant.taskdefs.email.EmailTask"

RE: [ANT] use ant send mail in java code occur erro

2006-12-13 Thread heliquan
First, Thank you very much! I'm sure the user and password was right. By the error message, I read the ant source code and find execute() method in org.apache.tools.ant.taskdefs.email.EmailTask class was get an instance mailer by org.apache.tools.ant.taskdefs.email.MimeMailer or org.apache.t

Re: ANT :use ant send mail in java code occur erro

2006-12-12 Thread Scot P. Floess
I would think and authentication error implies the wrong user name and/or password. Have you tried to output the values of both prior sending the email? heliquan wrote: > > Hi, >I use ant in java code to send e-mail,but some error I can't find the > solution. > In java code ,I had new a "

ANT :use ant send mail in java code occur erro

2006-12-11 Thread heliquan
Hi, I use ant in java code to send e-mail,but some error I can't find the solution. In java code ,I had new a "org.apache.tools.ant.taskdefs.email.EmailTask" class object to send email, but occur an "454 5.7.3 Client was not authenticated."excption. The java code like this: Project