a quick (hopefully) fix for flash messages when sending emails.