Fix email sending and process invalid payments
Add env path to gitignore