• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Mail API in java  RSS feed

 
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.
 
Saloon Keeper
Posts: 4754
117
  • 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.
 
Rancher
Posts: 1878
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: 4754
117
  • 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!