Tweaking logic to log error when emails can be sent instead of throwing one
Adding js to keep muraadminpreview param going.