my dog learned polymorphism*
The moose likes Other JSE/JEE APIs and the fly likes SMTPSendFailedException Occurs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "SMTPSendFailedException Occurs" Watch "SMTPSendFailedException Occurs" New topic
Author

SMTPSendFailedException Occurs

Balachandar Nayak
Greenhorn

Joined: Jul 22, 2005
Posts: 29
Hi,

I have a problem while executing this program.



This program compiles fine (no error) but while execution of this prg throws an error
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

Regards
Bala
Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
try

props.setProperty("mail.user", "jim");

instead of

props.setProperty("mail.user", "jim@stras.com");

Ensure that port 25 is not blocked.

rgds,

Seetesh
 
GeeCON Prague 2014
 
subject: SMTPSendFailedException Occurs