• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send mail using javamail error

 
peter qiu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i send the email using the smtp service i got the exception as " class javax.mail.MessagingException: 505 Error: Client was not authenticated ". I dont' know how to make myself authenticated in the java program as to send the mail?
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
the properties that you pass to the

the props must contain:

along with the other stuff you need there.
hope this helped.
k
 
peter qiu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi karl,
Thank you very much for your help! it really works now!
regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic