it now sends emails from production mode, correctly