ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Ant mail problem SMTPSendFailedException Client was not authenticated
Date Tue, 09 May 2006 13:45:35 GMT
Hello Geethakrishnan,

Are you sure that your user for mail.ncmr.co.in is geethakrishnan and 
not geethakrishnan@ncmr.co.in ?
The same parameters which work in Outlook or Thunderbird to setup your 
SMTP parameters should be used in Ant.
I have 2 email accounts, and in both case my SMTP user is the same as my 
email address, including the @domain part.

Regards,

Antoine

Devaraj, Geethakrishnan wrote:
> Hi All,
>
> I got ur id from the ant mailing list.Could u help me with this problem.I am using Ant
1.6.2 to send a mail i have downloaded mail.jar and aactivation.jar .My ant task looks as
below. 
>
> <target name="mail">
>      <mail mailhost="mail.ncmr.co.in" mailport="25" subject="test" user="geethakrishnan"
password="bottleneck">
>       <from address="geethakrishnan@ncmr.co.in" />
>       <replyto address="geethakrishnan@ncmr.co.in" />
>       <to address="sivakumar@ncmr.co.in" />
>       <message>TEST MAIL FROM ANT</message>      
>      </mail>
>     </target>
>
> when i try to run ant -debug mail i get the following error
>
> D:\krishna\27-03-2006-Sprint2\productcreator\tool\build.xml:681: Problem while s
> ending mime mail:
>         at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
> 29)
>         at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:
> 548)
>   
.....
> Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.3 Client was not a
> uthenticated
>
>         at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
> 388)
>         at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
>         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
>         at javax.mail.Transport.send0(Transport.java:169)
>         at javax.mail.Transport.send(Transport.java:98)
>         at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
> 27)
>         ... 11 more
> --- Nested Exception ---
> com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.3 Client was not authenticate
> d
>
>         at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
> 388)
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message