Hello Geethakrishnan,

Are you sure that your user for mail.ncmr.co.in is geethakrishnan and not [EMAIL PROTECTED] ? 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="[EMAIL PROTECTED]" />
      <replyto address="[EMAIL PROTECTED]" />
      <to address="[EMAIL PROTECTED]" />
<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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to