Fix issue with sending the email from a staged application