Fixing problem with sending emails in production env