Committing files for sending email on registration