开发者

Need to restart glassfish after each time sendmail function is used

开发者 https://www.devze.com 2023-03-27 05:09 出处:网络
I am facing a terrible problem with java Netbeans. Each time I run my sendmail function used for registration successfully, which means that

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 da开发者_高级运维tabase (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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号