A sound this name confused, later turned back to think carefully, in fact, it is very simple, I only need to implement a post-mail function and then add a mail subscription table can be achieved. When the user clicks the mail subscription operation, need to enter their own mailbox account, and then submit, at this time to save the mailbox account to the mail subscription form, plus the mail subscription status and its interested modules, according to their hobbies, send the designated mail to the user account, So at this point, just implement the function of sending the message code can be. Send the Message function can refer to many online code, I think http://www.iteye.com/topic/352753 this blog good, can refer to, it can send mail, paste Simplemailsender.java the code class must be sure to introduce the correct javax.net.* on behalf of the terminal the path, because the Rt.jar package under java.net. Under the same name of the Java class, the introduction of self-use will introduce the Rt.jar package will be error, at this time, do not worry, change the Java classpath.
Java Mail subscription feature analysis