There was a problem when the assign secret santa button was pressed, which was that everyone in the list got the same list because the app was supposed create a file with the same name, and then would send the email immediately after, however, it was not doing that. It would create every file first and then send them which created a problem because that same file kept getting overwritten. Fixed it by giving all the files a different name and then garbage collect the files once they had been sent.