eMail script while database opens

Hi all,

I am looking for a script, which sends out an eMail to a dedicated user when a database is opened or replicated.

We have a database which is replicated to a server in a different time zone. My users want to be informed when this database is replicated to the other server or the new document is opened by dedicated users.

Any hints how this can be done ?

Thanks

Joss