esattament come hai detto:

mandi una mail a te
salvi nel database

hai richieste più specifiche?