how to send an e-mail automatically when a row is inserted in the database?
<p>I have to develop a application with the following scenario:</p>

<p>1--User create a profil (name,lastname,address....)</p>

<p>2--The information are inserted in the database</p>

<p>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.</p>

<p>Is there a way to send automatically an e-mail when a row is inserted in the database?</p>

<p>I'm using java.</p>
