I have to develop a application with the following scenario:
1--User create a profil (name,lastname,address....)
2--The information are inserted in the database
3--The administrator should receive an e-mail to be notified by the new profil ,if the administrator dont approve the profil he will delete it.
Is there a way to send automatically an e-mail when a row is inserted in the database?
I'm using java.