• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMTPSendFailedException Occurs

 
Balachandar Nayak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try

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

instead of

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

Ensure that port 25 is not blocked.

rgds,

Seetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic