Put emailing in a separate thread
Better flash messages