Store e-mails in the database

Function to store e-mails for future sending in the database