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.
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.
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.
Normally trees don't drive trucks. Does this tiny ad have a license?
Gift giving made easy with the permaculture playing cards