Problem with sending mail throgh java mail api

hi folks,

We are having problem regarding sending mail using java mail api.

we are using msgsendsample.java file from demo folder contained in javamail-1.3.3_01 folder.

we are using following command at dos prompt.:

java msgsendsample kiran10182@gmail.com kiranurgreat@yahoo.co.in smtp.mail.yahoo.com false

It gives following Exception:

--Exception handling in msgsendsample.java

com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required - for hel

p go to http://help.yahoo.com/help/us/mail/pop/pop-11.html

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1

333) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)

at javax.mail.Transport.send0(Transport.java:151)

at javax.mail.Transport.send(Transport.java:80)

at msgsendsample.main(msgsendsample.java:93)

** ValidUnsent Addresses

kiran10182@gmail.com

- --

Thanking in Advance...

Please give us guidance to any alternate solution if exists.

[1149 byte] By [Kiran_Patel] at [2008-1-22]
# 1
hi the smtp server u are using should allow u to send mail to other smtp server like if u r sending mail to yahoo account u have to use yahoo smtp server only ..... bye
anil_verma at 2007-7-4 > top of java,E-Mail, Calendar, & Collaboration,Sun Java System Instant Messaging...