Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mail API in java  RSS feed

 
Swathi Shri
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Swathi Shri
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know why this code not works. Once I click the button in Java script page in the front end  I need to get a key through the mail which Im not getting.
I  dont know where I went wrong.
 
Tim Moores
Saloon Keeper
Posts: 3755
78
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the code being executed? All of it? Put in a lot of logging of relevant variables so you know which lines get executed, and whether the variables have the values you think they should have. Also post the entire stack trace if there is one.
 
Swastik Dey
Rancher
Posts: 1784
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Executed the code, didn't find anything wrong.
 
Tim Moores
Saloon Keeper
Posts: 3755
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean that you did this:
Put in a lot of logging of relevant variables so you know which lines get executed, and whether the variables have the values you think they should have.

? Post the output from it. Also make sure you set the "mail.debug" property to "true" before you call any JavaMail code - you'll get plenty of debugging output that way. Post that here as well.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!