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