Server-side scripting. I don't know how your system is working at the moment, but if it is opening your mail client and sending the information, then making it also write to database might be a bit difficult. If it redirects you to another page, where script sends the message, it will probably be easy. But the first thing to know then is which server side scripting language and which database are you using. Second, any question regarding that would fall out of the scope of this forum, so I suggest you ask the question in one of the appropriate forums: PHP, ASP, Coldfusion, Perl, etc.