سؤال

I am facing a terrible problem with java Netbeans.

Each time I run my sendmail function used for registration successfully, which means that 1. my database is successfully updated with the new user; 2. email is successfully sent to designated recipent,

I will need to restart my glassfish after each run before I could do another registration with the function of sendmail.

If I don't restart my glassfish and do another registration, everything goes fine with the database (updated with no issues), however the mail does not get sent at all.

So in short, my sendmail could only work once, and would require restarting glassfish before another sendmail can be done.

Any java/netbeans gurus can help? Greatly appreciate!

هل كانت مفيدة؟

المحلول

http://www.vipan.com/htdocs/javamail.html

Perhaps you can run in debugging mode and post your log entries. Need more information on what happens after your first email is sent.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top